Commit def2bf94 authored by 何娜's avatar 何娜

Update task.js

parent c373f0fa
Pipeline #4465 passed with stage
in 2 seconds
......@@ -34,6 +34,7 @@ class TaskService extends Service {
_checkSuccess(result) {
if (result.status !== 200) {
ctx.logger.info('_checkSuccess',JSON.stringify(result))
const errorMsg = result.data && result.data.error_msg ? result.data.error_msg : 'unknown error';
this.ctx.throw(result.status, errorMsg);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment