mirror of
https://github.com/ajnart/homarr.git
synced 2026-01-24 00:09:12 +01:00
Update accepted error codes
This commit is contained in:
@@ -30,7 +30,7 @@ export const appRouter = createTRPCRouter({
|
||||
},
|
||||
});
|
||||
} catch (error: any) {
|
||||
if (error.cause.code === 'ENOTFOUND') {
|
||||
if (error.cause.code === 'ENOTFOUND' || error.cause.code === 'ECONNREFUSED') {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user