Skip to content

Commit f8f86ef

Browse files
committed
Override name property of WidgetApiResponseError
1 parent 6abf9f9 commit f8f86ef

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/WidgetApi.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ import {
9696
} from "./interfaces/UpdateDelayedEventAction";
9797

9898
export class WidgetApiResponseError extends Error {
99+
static {
100+
this.prototype.name = this.name;
101+
}
102+
99103
public constructor(
100104
message: string,
101105
public readonly data: IWidgetApiErrorResponseDataDetails,

0 commit comments

Comments
 (0)