|
@@ -84,9 +84,10 @@ async def create_new_toolkit(
|
|
else:
|
|
else:
|
|
raise HTTPException(
|
|
raise HTTPException(
|
|
status_code=status.HTTP_400_BAD_REQUEST,
|
|
status_code=status.HTTP_400_BAD_REQUEST,
|
|
- detail=ERROR_MESSAGES.FILE_EXISTS,
|
|
|
|
|
|
+ detail=ERROR_MESSAGES.DEFAULT("Error creating toolkit"),
|
|
)
|
|
)
|
|
except Exception as e:
|
|
except Exception as e:
|
|
|
|
+ print(e)
|
|
raise HTTPException(
|
|
raise HTTPException(
|
|
status_code=status.HTTP_400_BAD_REQUEST,
|
|
status_code=status.HTTP_400_BAD_REQUEST,
|
|
detail=ERROR_MESSAGES.DEFAULT(e),
|
|
detail=ERROR_MESSAGES.DEFAULT(e),
|