From cac5c9c1e0144fc80c20523bb2dfdb5c90611bdb Mon Sep 17 00:00:00 2001 From: "P. Reis" Date: Tue, 2 Jul 2024 17:17:29 -0300 Subject: [PATCH] refactor: change timeout error message --- src/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.ts b/src/app.ts index 2e7d8791..c47d2579 100644 --- a/src/app.ts +++ b/src/app.ts @@ -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); });