Skip to content

Commit d337888

Browse files
authored
add HTTP method fallback to exception
1 parent 9ba5841 commit d337888

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/exceptions/FortniteAPIError.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ class FortniteAPIError extends Error {
3030
this.name = 'FortniteAPIError';
3131
this.message = error.error;
3232

33+
this.method = request.method?.toUpperCase() ?? 'GET'
3334
this.url = request.url!;
3435
this.httpStatus = status;
3536
this.requestParams = request.params;

0 commit comments

Comments
 (0)