Skip to content

Commit e2031d9

Browse files
author
jarvisjiang
committed
fix: override name attribute in FetchError class
1 parent 1a666b4 commit e2031d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fetch/defines.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export class FetchError extends Error {
9191
/**
9292
* The name of the error.
9393
*/
94-
name = 'FetchError';
94+
override name = 'FetchError';
9595
/**
9696
* The status code of the response.
9797
*/

0 commit comments

Comments
 (0)