Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
Update src/webportal/src/app/home/home/conn.js
Browse files Browse the repository at this point in the history
Co-authored-by: Yifan Xiong <[email protected]>
  • Loading branch information
yiyione and abuccts committed Jul 22, 2020
1 parent 1b0565a commit 596142f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/webportal/src/app/home/home/conn.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,7 @@ const wrapper = async func => {
if (err.data.code === 'UnauthorizedUserError') {
throw new UnauthorizedError(err.data.message);
} else {
if (err.data && err.data.message) {
throw new Error(err.data.message);
} else {
throw new Error(err.message);
}
throw new Error(err.data.message || err.message);
}
}
};
Expand Down

0 comments on commit 596142f

Please sign in to comment.