Files
reflector/www/app/lib/errorUtils.ts
2023-11-08 16:17:03 +01:00

8 lines
197 B
TypeScript

function shouldShowError(error: Error | null | undefined) {
if (error?.name == "ResponseError" && error["response"].status == 404)
return false;
return true;
}
export { shouldShowError };