Errors can be emitted using the ctx.app.emit() method: app.use(async (ctx, next) => { try { await next(); } catch (err) { ctx.status = err.status || 500; ...
確定! 回上一頁