refactor: change timeout error message

This commit is contained in:
P. Reis 2024-07-02 17:17:29 -03:00
parent e6c38550c6
commit cac5c9c1e0

View file

@ -342,7 +342,7 @@ app.get('*', publicFiles, staticFiles, frontendController);
app.onError((err, c) => {
if (err.message === 'canceling statement due to statement timeout') {
return c.json({ error: 'Everything will be fine, I mean it. Don\t worry child.' }, 500);
return c.json({ error: "A timeout happened, don't worry :)" }, 500);
}
return c.json(500);
});