diff --git a/homepage/index.js b/homepage/index.js index 3e9c602..8d43efc 100644 --- a/homepage/index.js +++ b/homepage/index.js @@ -147,6 +147,7 @@ app await next(); if (ctx.status === 404) ctx.throw(404); } catch (err) { + ctx.status = err.status || 500; if (ctx.status === 404) await ctx.render('404'); else