fix: v1 artifact "this" reference (#711)

This commit is contained in:
d3v 2016-04-20 08:15:11 +02:00 committed by Yiyu He
parent 54e58d3523
commit e0a0d9f7cc

View file

@ -40,8 +40,8 @@ app.use(async (ctx, next) => {
await next(); await next();
} catch (err) { } catch (err) {
// will only respond with JSON // will only respond with JSON
this.status = err.statusCode || err.status || 500; ctx.status = err.statusCode || err.status || 500;
this.body = { ctx.body = {
message: err.message message: err.message
}; };
} }