mirror of
https://github.com/nick-fields/retry.git
synced 2026-02-09 14:48:02 +00:00
minor: forgot to set ctor props
This commit is contained in:
2
dist/index.js
vendored
2
dist/index.js
vendored
@@ -963,6 +963,8 @@ var ErrorWithCode = /** @class */ (function (_super) {
|
||||
var _this = _super.call(this) || this;
|
||||
_this.message = message;
|
||||
_this.code = code;
|
||||
_this.code = code;
|
||||
_this.message = message;
|
||||
return _this;
|
||||
}
|
||||
return ErrorWithCode;
|
||||
|
||||
@@ -16,6 +16,8 @@ let done: boolean;
|
||||
class ErrorWithCode extends Error {
|
||||
constructor(readonly message: string, readonly code: number) {
|
||||
super();
|
||||
this.code = code;
|
||||
this.message = message;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user