Skip to content

Commit

Permalink
Show buffers nicely within attachments, even at the root level
Browse files Browse the repository at this point in the history
  • Loading branch information
guigrpa committed Jun 21, 2016
1 parent 67bf26b commit e7f7664
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

*[M]: major change; [m]: minor change*

* [m] Show **buffers** nicely within attachments

## 1.3.0 (June 9, 2016)

* Browser extension:
Expand Down
2 changes: 1 addition & 1 deletion src/gral/treeLines.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ treeLines = (obj, options = {}) ->
prefix = options.prefix ? ''
if _.isError obj
obj = _.pick obj, ['name', 'message', 'stack']
else if not _.isObject obj
else if (not _.isObject obj) or (obj instanceof Buffer)
obj = {"#{WRAPPER_KEY}": obj}
return _tree obj, options, prefix, []

Expand Down

0 comments on commit e7f7664

Please sign in to comment.