Skip to content

Commit

Permalink
fix: resolved undefined stack in error issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Vikram Kalta committed Mar 4, 2024
1 parent b0365ab commit f6a167a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/core/concurrency-queue.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ export function ConcurrencyQueue ({ axios, config }) {
code: 'Unauthorized',
message: 'Unable to refresh token',
name: 'Token Error',
config: queueItem.request
config: queueItem.request,
stack: (error instanceof Error) ? error.stack : null,
})
})
this.queue = []
Expand Down

0 comments on commit f6a167a

Please sign in to comment.