diff --git a/public/language/en-GB/error.json b/public/language/en-GB/error.json index 9df89fe5cf..d3fa2e4300 100644 --- a/public/language/en-GB/error.json +++ b/public/language/en-GB/error.json @@ -2,6 +2,7 @@ "invalid-data": "Invalid Data", "invalid-json": "Invalid JSON", "array-expected": "A value of type Array was expected for property `%1`, but %2 was received instead", + "required-parameters-missing": "Required parameters were missing from this API call: %1", "not-logged-in": "You don't seem to be logged in.", "account-locked": "Your account has been locked temporarily", diff --git a/src/middleware/index.js b/src/middleware/index.js index ea22f285af..24d7a9543f 100644 --- a/src/middleware/index.js +++ b/src/middleware/index.js @@ -255,5 +255,5 @@ middleware.checkRequired = function (fields, req, res, next) { return next(); } - controllers.helpers.formatApiResponse(400, res, new Error(`Required parameters were missing from this API call: ${missing.join(', ')}`)); + controllers.helpers.formatApiResponse(400, res, new Error(`[[error:required-parameters-missing, ${missing.join(' ')}]]`)); };