Skip to content

Commit

Permalink
fix: report error message
Browse files Browse the repository at this point in the history
  • Loading branch information
yetone committed Feb 20, 2023
1 parent ba7c72a commit c56f9f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ function translate(query, completion) {
completion({
error: {
type: reason,
message: `接口响应错误 - ${response.data.msg}`,
addtion: JSON.stringify(response),
message: `接口响应错误 - ${resp.data.error.message}`,
addtion: JSON.stringify(resp),
},
});
} else {
Expand Down

0 comments on commit c56f9f2

Please sign in to comment.