Skip to content

Commit 49b6e54

Browse files
author
Vikram Kalta
committed
fix: resolved undefined stack in error issue
1 parent 0167cce commit 49b6e54

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/core/concurrency-queue.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ export function ConcurrencyQueue ({ axios, config }) {
155155
code: 'Unauthorized',
156156
message: 'Unable to refresh token',
157157
name: 'Token Error',
158-
config: queueItem.request
158+
config: queueItem.request,
159+
stack: (error instanceof Error) ? error.stack : null,
159160
})
160161
})
161162
this.queue = []

0 commit comments

Comments
 (0)