Skip to content

Commit

Permalink
fix: display all property when printing error (#334)
Browse files Browse the repository at this point in the history
Co-authored-by: kakha urigashvili <[email protected]>
  • Loading branch information
kakhaUrigashvili and kakha urigashvili authored Nov 10, 2020
1 parent 2655742 commit b562325
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/view/json-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function toString(jsonObject) {
try {
// handle issue when Error object serialized to {}
if (jsonObject instanceof Error) {
jsonObject = { message: jsonObject.message, stack: jsonObject.stack };
jsonObject = { message: jsonObject.message, stack: jsonObject.stack, detail: jsonObject };
}
return JSON.stringify(jsonObject, null, CONSTANTS.CONFIGURATION.JSON_DISPLAY_INDENT);
} catch (e) {
Expand Down

0 comments on commit b562325

Please sign in to comment.