Skip to content

Commit 416798f

Browse files
committed
Rename error handler
1 parent 6cae2dd commit 416798f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/http.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export class Http {
9090

9191
return res;
9292
} catch (err) {
93-
this.emitError(err);
93+
this.handleError(err);
9494

9595
throw err;
9696
}
@@ -102,7 +102,7 @@ export class Http {
102102
});
103103
}
104104

105-
protected emitError(err: unknown) {
105+
protected handleError(err: unknown) {
106106
this.errorHandlers.forEach((handler) => {
107107
handler(err);
108108
});

0 commit comments

Comments
 (0)