mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
refactor: change timeout error message
This commit is contained in:
parent
e6c38550c6
commit
cac5c9c1e0
1 changed files with 1 additions and 1 deletions
|
|
@ -342,7 +342,7 @@ app.get('*', publicFiles, staticFiles, frontendController);
|
||||||
|
|
||||||
app.onError((err, c) => {
|
app.onError((err, c) => {
|
||||||
if (err.message === 'canceling statement due to statement timeout') {
|
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);
|
return c.json(500);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue