Update accepted error codes

This commit is contained in:
ajnart
2024-01-05 14:26:27 +01:00
parent a1b9f71a63
commit f094628a0f

View File

@@ -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;
}
}