diff --git a/api/src/security/api-keys.js b/api/src/security/api-keys.js index 6ab11e78..754da2af 100644 --- a/api/src/security/api-keys.js +++ b/api/src/security/api-keys.js @@ -51,7 +51,7 @@ const validateKeys = (input) => { if (typeof details.limit !== 'number') throw "detail object contains invalid limit (not a number)"; else if (details.limit < 1) - throw "detail object contains invalid limit (not a number)"; + throw "detail object contains invalid limit (not a positive number)"; } if (details.ips) {