diff --git a/index.js b/index.js index 7705e5a..0e60707 100644 --- a/index.js +++ b/index.js @@ -5,6 +5,6 @@ const isString = require("is-string"); module.exports = function (value) { if (!isString(value)) { - return new ValidationError("Must be a string"); + return new ValidationError("Must be a string", { code: "validatem.is-string" }); } };