Skip to content

Commit

Permalink
Merge pull request #70 from damehta/master
Browse files Browse the repository at this point in the history
Error message updated. Added value to log output.
  • Loading branch information
kriszyp committed Sep 6, 2019
2 parents f4cf71d + ab35100 commit 431200e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/validate.js
Expand Up @@ -107,7 +107,7 @@ var validate = exports._validate = function(/*Any*/instance,/*Object*/schema,/*O
!(value instanceof Array && type == 'array') &&
!(value instanceof Date && type == 'date') &&
!(type == 'integer' && value%1===0)){
return [{property:path,message:(typeof value) + " value found, but a " + type + " is required"}];
return [{property:path,message:value + " - " + (typeof value) + " value found, but a " + type + " is required"}];
}
if(type instanceof Array){
var unionErrors=[];
Expand Down

0 comments on commit 431200e

Please sign in to comment.