Skip to content

Commit 257a0ab

Browse files
committed
(wip)
1 parent 6228619 commit 257a0ab

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

bin/index.js

+5-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bin/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

+5-6
Original file line numberDiff line numberDiff line change
@@ -195,14 +195,13 @@ const err = (e: any) =>
195195
error(
196196
e +
197197
(e instanceof Error
198-
? ` Stack: ${e.stack}` +
199-
(e instanceof RequestError
200-
? ` Request: ${e.request.method} ${e.request.url}` +
201-
` Response Scopes: ${scopesToString(
198+
? (e instanceof RequestError
199+
? `\nRequest: ${e.request.method} ${e.request.url}` +
200+
`\nResponse Scopes: ${scopesToString(
202201
e.response?.headers?.["x-oauth-scopes"]
203202
)}` +
204-
`Response Headers: ${JSON.stringify(e.response?.headers || [])}`
205-
: "")
203+
`\nResponse Headers: ${JSON.stringify(e.response?.headers || [])}`
204+
: "") + `\n Stack: ${e.stack}`
206205
: "")
207206
);
208207

0 commit comments

Comments
 (0)