diff --git a/packages/server/src/middleware/routeHandler.ts b/packages/server/src/middleware/routeHandler.ts index 399ce114c..74dd2ebfa 100644 --- a/packages/server/src/middleware/routeHandler.ts +++ b/packages/server/src/middleware/routeHandler.ts @@ -52,6 +52,7 @@ export default async function(ctx: AppContext) { content: { error, stack: ctx.env === Env.Dev ? error.stack : '', + owner: ctx.owner, }, }; ctx.response.body = await mustache().renderView(view); diff --git a/packages/server/src/views/index/error.mustache b/packages/server/src/views/index/error.mustache index c0e84232f..74630390a 100644 --- a/packages/server/src/views/index/error.mustache +++ b/packages/server/src/views/index/error.mustache @@ -6,6 +6,11 @@
{{.}}
{{/stack}} -

Back to the login page

+ {{#owner}} +

Back to home page

+ {{/owner}} + {{^owner}} +

Back to login page

+ {{/owner}} \ No newline at end of file