Skip to content

Commit

Permalink
fix: show full context if error happens, and don't fail smapi-sdk's e…
Browse files Browse the repository at this point in the history
…rror response
  • Loading branch information
RonWang committed May 12, 2020
1 parent 1fbe762 commit e1580e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/ask-smapi.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if (!process.argv.slice(2).length) {
commander.parseAsync(process.argv)
.then(result => Messenger.getInstance().info(result))
.catch(err => {
Messenger.getInstance().error(jsonView.toString(err.response));
Messenger.getInstance().error(jsonView.toString(err));
process.exit(1);
});
}

0 comments on commit e1580e4

Please sign in to comment.