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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "piper-utils",
3
- "version": "1.1.61",
3
+ "version": "1.1.62",
4
4
  "description": "Utility library for Piper",
5
5
  "main": "bin/main.js",
6
6
  "scripts": {
@@ -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 delete this item as it is in use';
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;