Skip to content

Commit

Permalink
chore: improve page error messages (#4314)
Browse files Browse the repository at this point in the history
* chore: improve page error messages

Signed-off-by: donniean <[email protected]>

* chore: remove error reason

Signed-off-by: donniean <[email protected]>

---------

Signed-off-by: donniean <[email protected]>
  • Loading branch information
donniean authored Sep 25, 2024
1 parent 6b456e7 commit 75df2ae
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions server/controllers/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@ const renderViewErr = async (ctx, err) => {
message: 'Unable to access the api server',
});
} else {
await ctx.render('error', {
title: useDefaultTheme ? defaultTheme?.tabTitle : title,
favicon,
t: ctx.t.bind(ctx),
message: '',
});
ctx.app.emit('error', err);
}
} else {
Expand Down

0 comments on commit 75df2ae

Please sign in to comment.