fix type errors caused by dependency updates
This commit is contained in:
parent
5234b92898
commit
681afb2d9f
6 changed files with 13 additions and 13 deletions
|
|
@ -67,7 +67,7 @@ export function getErrorException(error: unknown): Error | null {
|
|||
}
|
||||
|
||||
// This is the inner exception, basically
|
||||
if (error.cause && !isAxiosError(error.cause)) {
|
||||
if (error.cause instanceof Error && !isAxiosError(error.cause)) {
|
||||
if (!error.cause.stack) {
|
||||
error.cause.stack = error.stack;
|
||||
}
|
||||
|
|
@ -150,7 +150,7 @@ function unpackAxiosError(error: unknown): unknown {
|
|||
return undefined;
|
||||
}
|
||||
|
||||
if (error.cause && !isAxiosError(error.cause)) {
|
||||
if (error.cause instanceof Error && !isAxiosError(error.cause)) {
|
||||
if (!error.cause.stack) {
|
||||
error.cause.stack = error.stack;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue