不要怂,就是干,撸起袖子干!

Commit 39c857de by Tiago Ribeiro

Fix error stack trace

1 parent de1d3e9d
Showing with 1 additions and 1 deletions
......@@ -21,8 +21,8 @@ error.BaseError = function() {
var tmp = Error.apply(this, arguments);
tmp.name = this.name = 'SequelizeBaseError';
Error.captureStackTrace && Error.captureStackTrace(this, this.constructor);
this.message = tmp.message;
Error.captureStackTrace && Error.captureStackTrace(this, this.constructor);
};
util.inherits(error.BaseError, Error);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!