From a7ddafd4aa70e23fbc0e62f630e5fab427564253 Mon Sep 17 00:00:00 2001 From: moonkey124 Date: Sun, 30 Aug 2020 03:25:22 +0200 Subject: [PATCH] fix: incorrect error name for 1017 (#2331) Fixed a copy and paste mistake ***NO_CI*** --- server/helpers/error.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }),