diff --git a/lib/utils/is-error.ts b/lib/utils/is-error.ts index 471cdb213..8258c0f6d 100644 --- a/lib/utils/is-error.ts +++ b/lib/utils/is-error.ts @@ -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; }