提交 9e7fecc5 编写于 作者: d-u-a's avatar d-u-a

fix: request API 增加详细错误信息

上级 653398aa
......@@ -164,7 +164,7 @@ function createApiCallback (apiName, params = {}, extras = {}) {
} else if (res.errMsg.indexOf(':cancel') !== -1) {
res.errMsg = apiName + ':cancel'
} else if (res.errMsg.indexOf(':fail') !== -1) {
res.errMsg = apiName + ':fail'
res.errMsg = apiName + ':fail' + res.errMsg.substr(res.errMsg.indexOf(' '))
}
const errMsg = res.errMsg
......
......@@ -102,7 +102,7 @@ export function createRequestTaskById (requestTaskId, {
requestTaskId,
state: 'fail',
statusCode,
errMsg: 'abort'
errMsg: 'abort statusCode:' + statusCode
})
}
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册