Skip to content

Commit

Permalink
wip(uts): add error
Browse files Browse the repository at this point in the history
  • Loading branch information
fxy060608 committed Sep 20, 2023
1 parent 79fb56d commit 63d7de9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/platforms/app-plus/service/api/plugin/uts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 63d7de9

Please sign in to comment.