mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 20:29:06 +00:00
9 lines
246 B
TypeScript
9 lines
246 B
TypeScript
function shouldShowError(error: Error | null | undefined) {
|
|
if (error?.name == "ResponseError" && error["response"].status == 404)
|
|
return false;
|
|
if (error?.name == "FetchError") return false;
|
|
return true;
|
|
}
|
|
|
|
export { shouldShowError };
|