piper-utils 1.1.61 → 1.1.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CLAUDE.md +5 -0
- package/bin/main.js +420 -2075
- package/bin/main.js.map +1 -1
- package/package.json +1 -1
- package/src/requestResponse/requestResponse.js +1 -1
package/package.json
CHANGED
|
@@ -213,7 +213,7 @@ export function detectSequelizeError(body) {
|
|
|
213
213
|
const errorName = _.get(body, 'name', '');
|
|
214
214
|
|
|
215
215
|
if (errorName === 'SequelizeForeignKeyConstraintError') {
|
|
216
|
-
errorBody.message = 'You cannot
|
|
216
|
+
errorBody.message = 'You cannot UPDATE or DELETE this item as it is in use';
|
|
217
217
|
errorBody.statusCode = 409;
|
|
218
218
|
errorBody.errorCode = '4090';
|
|
219
219
|
return errorBody;
|