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

Pass arguments on parents for Sequelize Errors module

1 parent 10910695
Showing with 2 additions and 2 deletions
......@@ -11,7 +11,7 @@ var error = module.exports = {}
* @constructor
*/
error.BaseError = function() {
Error.call(this)
Error.apply(this, arguments)
};
util.inherits(error.BaseError, Error)
......@@ -22,6 +22,6 @@ util.inherits(error.BaseError, Error)
* @constructor
*/
error.ValidationError = function() {
error.BaseError.call(this)
error.BaseError.apply(this, arguments)
};
util.inherits(error.ValidationError, error.BaseError)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!