We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
name
1 parent 5c2d445 commit bad30feCopy full SHA for bad30fe
errors.ts
@@ -10,6 +10,10 @@
10
* Batch error raised when one of the functions fails during batch process.
11
*/
12
export class BatchError extends Error {
13
+ static {
14
+ this.prototype.name = "BatchError";
15
+ }
16
+
17
/**
18
* A result list that is successfully completed prior to the error.
19
@@ -18,7 +22,6 @@ export class BatchError extends Error {
22
constructor(message: string, results: unknown[]) {
23
super(message);
20
24
21
- this.name = this.constructor.name;
25
this.results = results;
26
}
27
0 commit comments