Skip to content

Commit 431200e

Browse files
authoredSep 6, 2019
Merge pull request #70 from damehta/master
Error message updated. Added value to log output.
2 parents f4cf71d + ab35100 commit 431200e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/validate.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ var validate = exports._validate = function(/*Any*/instance,/*Object*/schema,/*O
107107
!(value instanceof Array && type == 'array') &&
108108
!(value instanceof Date && type == 'date') &&
109109
!(type == 'integer' && value%1===0)){
110-
return [{property:path,message:(typeof value) + " value found, but a " + type + " is required"}];
110+
return [{property:path,message:value + " - " + (typeof value) + " value found, but a " + type + " is required"}];
111111
}
112112
if(type instanceof Array){
113113
var unionErrors=[];

0 commit comments

Comments
 (0)
Please sign in to comment.