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

Commit 2d844bea by David Pate

Fixed errors calling themselves 🤦

1 parent 6a05659c
Showing with 5 additions and 5 deletions
......@@ -222,7 +222,7 @@ util.inherits(error.ConnectionRefusedError, error.ConnectionError);
* @constructor
*/
error.AccessDeniedError = function (parent) {
error.AccessDeniedError.call(this, parent);
error.ConnectionError.call(this, parent);
this.name = 'SequelizeAccessDeniedError';
};
util.inherits(error.AccessDeniedError, error.ConnectionError);
......@@ -233,7 +233,7 @@ util.inherits(error.AccessDeniedError, error.ConnectionError);
* @constructor
*/
error.HostNotFoundError = function (parent) {
error.HostNotFoundError.call(this, parent);
error.ConnectionError.call(this, parent);
this.name = 'SequelizeHostNotFoundError';
};
util.inherits(error.HostNotFoundError, error.ConnectionError);
......@@ -244,7 +244,7 @@ util.inherits(error.HostNotFoundError, error.ConnectionError);
* @constructor
*/
error.HostNotReachableError = function (parent) {
error.HostNotReachableError.call(this, parent);
error.ConnectionError.call(this, parent);
this.name = 'SequelizeHostNotReachableError';
};
util.inherits(error.HostNotReachableError, error.ConnectionError);
......@@ -255,7 +255,7 @@ util.inherits(error.HostNotReachableError, error.ConnectionError);
* @constructor
*/
error.InvalidConnectionError = function (parent) {
error.InvalidConnectionError.call(this, parent);
error.ConnectionError.call(this, parent);
this.name = 'SequelizeInvalidConnectionError';
};
util.inherits(error.InvalidConnectionError, error.ConnectionError);
......@@ -266,7 +266,7 @@ util.inherits(error.InvalidConnectionError, error.ConnectionError);
* @constructor
*/
error.ConnectionTimedOutError = function (parent) {
error.ConnectionTimedOutError.call(this, parent);
error.ConnectionError.call(this, parent);
this.name = 'SequelizeConnectionTimedOutError';
};
util.inherits(error.ConnectionTimedOutError, error.ConnectionError);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!