Skip to content

Commit 30796b2

Browse files
committed
Improve error message
Signed-off-by: Fabio José <[email protected]>
1 parent d02f21c commit 30796b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/specs/spec_0_2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Spec02.prototype.check = function(){
3636
var valid = validate(this.payload);
3737

3838
if(!valid) {
39-
throw {message: "invalid payload"};
39+
throw {message: "invalid payload", errors: validate.errors};
4040
}
4141

4242
};

0 commit comments

Comments
 (0)