提交 27083ae0 编写于 作者: fxy060608's avatar fxy060608

fix(api): normalize error msg

上级 124cfdcf
......@@ -131,7 +131,7 @@ function wrapperOffApi<T extends ApiLike>(
}
function normalizeErrMsg(errMsg: string | Error) {
if (isString(errMsg)) {
if (!errMsg || isString(errMsg)) {
return errMsg
}
if (errMsg.stack) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册