Skip to content

Commit 06fde80

Browse files
committed
feat: improve api request error format
1 parent 9cd6608 commit 06fde80

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'jellycommands': patch
3+
---
4+
5+
improved API error format

packages/jellycommands/src/util/request.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export function createRequest(token: string) {
3434
);
3535

3636
const error = message
37-
? `[DISCORD API ERROR] ${message}`
37+
? `[DISCORD API ERROR] [${method.toUpperCase()} ${route}] ${message}`
3838
: e.message;
3939

4040
throw new Error(error);

0 commit comments

Comments
 (0)