Skip to content

Commit

Permalink
fix: fails if unexpected error type thrown
Browse files Browse the repository at this point in the history
resolves #2256
  • Loading branch information
BrunnerLivio committed Sep 14, 2023
1 parent 5c9c2b1 commit b641d2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/is-error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ export function isAxiosError(err: any): err is AxiosError {
}

export function isError(err: any): err is Error {
return !!err.message;
return !!err?.message;
}

0 comments on commit b641d2e

Please sign in to comment.