Skip to content

Commit 9ba5841

Browse files
authored
use request config from error if available in exception
1 parent 88ffb11 commit 9ba5841

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/http/HTTP.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class HTTP {
5656
}
5757
}
5858

59-
throw new FortniteAPIError(e.response.data, config, e.response.status);
59+
throw new FortniteAPIError(e.response.data, e.config ?? config, e.response.status);
6060
}
6161

6262
throw e;

0 commit comments

Comments
 (0)