Skip to content

Commit

Permalink
chore: improve page error messages
Browse files Browse the repository at this point in the history
Signed-off-by: donniean <[email protected]>
  • Loading branch information
donniean committed Sep 25, 2024
1 parent 6b456e7 commit 8783ed6
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: err.message,
});
ctx.app.emit('error', err);
}
} else {
Expand Down

0 comments on commit 8783ed6

Please sign in to comment.