Skip to content

Commit e72781d

Browse files
committed
http exception used in frontend
1 parent 5b53e4d commit e72781d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/frontend/src/pages/WorkPackageForm/CreateWorkPackageForm.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ const CreateWorkPackageForm: React.FC = () => {
1313
const wbsNum = query.get('wbs');
1414
const history = useHistory();
1515

16-
if (!wbsNum) throw new HttpException(400, 'WBS number not included in request.');
17-
if (!crId) throw new HttpException(400, 'CR ID not included in request.');
16+
if (!wbsNum) throw new Error('WBS number not included in request.');
17+
if (!crId) throw new Error('CR ID not included in request.');
1818

1919
const { mutateAsync } = useCreateSingleWorkPackage();
2020

0 commit comments

Comments
 (0)