fix: v1 artifact "this" reference (#711)
This commit is contained in:
parent
54e58d3523
commit
e0a0d9f7cc
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue