lib/console/event/failure.rb in console-1.9.0 vs lib/console/event/failure.rb in console-1.9.1

- old
+ new

@@ -47,9 +47,13 @@ terminal[:exception_title] ||= terminal.style(:red, nil, :bold) terminal[:exception_detail] ||= terminal.style(:yellow) terminal[:exception_backtrace] ||= terminal.style(:red) end + def to_h + {exception: @exception, root: @root} + end + def format(output, terminal, verbose) format_exception(@exception, nil, output, terminal, verbose) end def format_exception(exception, prefix, output, terminal, verbose)