diff options
| author | Carson Fleming <cflems@cflems.net> | 2023-10-21 01:53:43 -0400 |
|---|---|---|
| committer | Carson Fleming <cflems@cflems.net> | 2023-10-21 01:53:43 -0400 |
| commit | c59fd65155a8005f28a3d16778373bc23ee25a38 (patch) | |
| tree | d7ddafc3814d7585d4994a4160fa613abdd71afb /utils.js | |
| parent | 1f46c091dd4f2e1c2e58f658544a68656fb056e7 (diff) | |
| download | fle.ms-c59fd65155a8005f28a3d16778373bc23ee25a38.tar.gz | |
Create UX contingencies for malformed URLs and slugs
Diffstat (limited to 'utils.js')
| -rw-r--r-- | utils.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -24,8 +24,8 @@ const helperFunctions = { else res.send(JSON.stringify(statusJson)); }); }, - sendBadRequestError : function (res, errorMessage) { - res.status(400).json({status: "ERROR", statusCode: 400, errorType: "BAD REQUEST", errorMessage, uiString: "Already Exists"}); + sendBadRequestError : function (res, errorMessage, uiString) { + res.status(400).json({status: "ERROR", statusCode: 400, errorType: "BAD REQUEST", errorMessage, uiString}); }, sendInternalServerError : function (res, error) { console.error('[express] Error:', error); |
