Skip to content

Commit

Permalink
fix(task): simplify the error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
ci010 committed Sep 8, 2019
1 parent 91d46eb commit 34ebdc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/store/modules/task.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ const mod = {

let errorMessage;
if (error instanceof Error) {
errorMessage = error.stack;
errorMessage = error.toString();
} else {
errorMessage = JSON.stringify(error, null, 4);
}
Expand Down

0 comments on commit 34ebdc8

Please sign in to comment.