We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 375fa0f commit 2dba52dCopy full SHA for 2dba52d
lib/errors/validation/validation-error.js
@@ -6,6 +6,7 @@ class ValidationError extends Error {
6
const id = instance.id;
7
super(getMessage(message, modelName, id));
8
Object.assign(this, { instance, id, modelName });
9
+ Error.captureStackTrace(this, this.constructor);
10
}
11
12
0 commit comments