Skip to content

Commit

Permalink
Capture stack trace for validation error
Browse files Browse the repository at this point in the history
  • Loading branch information
1602 committed Apr 11, 2016
1 parent 6e3b176 commit 0a2a549
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/validations.js
Expand Up @@ -645,6 +645,7 @@ function ValidationError(obj) {
this.context = obj && obj.constructor && obj.constructor.modelName;

Error.call(this);
Error.captureStackTrace(this);
}


Expand Down

0 comments on commit 0a2a549

Please sign in to comment.