diff --git a/server/helpers/error.js b/server/helpers/error.js index 1c052019..f9a81779 100644 --- a/server/helpers/error.js +++ b/server/helpers/error.js @@ -229,7 +229,7 @@ module.exports = { message: 'An unexpected error occured during user creation.', code: 1009 }), - UserDeleteForeignConstraint: CustomError('UserCreationFailed', { + UserDeleteForeignConstraint: CustomError('UserDeleteForeignConstraint', { message: 'Cannot delete user because of content relational constraints.', code: 1017 }),