security/api-keys: clarify error when number is not positive

This commit is contained in:
dumbmoron 2024-10-04 17:34:15 +00:00
parent 81818f8741
commit 3d7713a942
No known key found for this signature in database

View file

@ -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) {