mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 20:29:06 +00:00
Triage error and better websocket handling
This commit is contained in:
7
www/app/lib/errorUtils.ts
Normal file
7
www/app/lib/errorUtils.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
function shouldShowGet(error: Error | null | undefined) {
|
||||
if (error?.name == "ResponseError" && error["response"].status == 404)
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
export { shouldShowGet };
|
||||
Reference in New Issue
Block a user