提交 63d7de9a 编写于 作者: fxy060608's avatar fxy060608

wip(uts): add error

上级 79fb56da
......@@ -32,7 +32,10 @@ function resolveSyncResult(args, res, returnOptions, instanceId, proxy) {
console.log('uts.invokeSync.result', res, returnOptions, instanceId, typeof proxy);
}
if (!res) {
throw new Error(JSON.stringify(args));
throw new Error('返回值为:' +
JSON.stringify(res) +
';请求参数为:' +
JSON.stringify(args));
}
// devtools 环境是字符串?
if (isString(res)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册