Skip to content
This repository was archived by the owner on Nov 2, 2023. It is now read-only.

Commit e81fd46

Browse files
committed
Fixes error message
1 parent 1f3275e commit e81fd46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/validate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ var validate = exports._validate = function(/*Any*/instance,/*Object*/schema,/*O
218218
delete instance[i];
219219
continue;
220220
} else {
221-
errors.push({property:path,message:(typeof value) + "The property " + i +
221+
errors.push({property:path,message:"The property " + i +
222222
" is not defined in the schema and the schema does not allow additional properties"});
223223
}
224224
}

0 commit comments

Comments
 (0)