minor: forgot to set ctor props

This commit is contained in:
Nick Fields committed 2023-09-24 20:41:06 -04:00
1 parent db9d6ef914
commit cc15f2ffff
2 files changed
+4

No files matched your search

+2
View File
@@ -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;
+2
View File
@@ -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;
}
}