fix type errors caused by dependency updates

This commit is contained in:
Hazelnoot 2025-09-24 03:06:16 -04:00
parent 5234b92898
commit 681afb2d9f
6 changed files with 13 additions and 13 deletions

View file

@ -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;
}