diff --git a/index.js b/index.js index cf7fa59..60d9f73 100644 --- a/index.js +++ b/index.js @@ -9,6 +9,6 @@ module.exports = function (value) { if (!isNumberObject(value)) { throw new ValidationError("Must be a number"); } else if (Number.isNaN(value)) { - throw new ValidationError(`Must not be NaN`); + throw new ValidationError(`Must be a number (must not be NaN)`); } };