Skip to content

Commit

Permalink
Call inspect on exception
Browse files Browse the repository at this point in the history
Update revision
  • Loading branch information
obourdon committed Jan 26, 2023
1 parent 94a95be commit 2bd355e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/awesome_print/formatter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,7 @@ def convert_to_hash(object)

hash
rescue
# TODO: see if return object would not be better
return nil
return { class: object.class.name, contents: object.inspect }
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/awesome_print/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
#------------------------------------------------------------------------------
module AwesomePrint
def self.version
'1.9.2'
'1.9.3'
end
end

0 comments on commit 2bd355e

Please sign in to comment.