lib/console/event/failure.rb in console-1.2.3 vs lib/console/event/failure.rb in console-1.2.4
- old
+ new
@@ -69,10 +69,10 @@
path.gsub!(/^#{@root}\//, "./") if @root
output.puts " #{index == 0 ? "→" : " "} #{terminal[:exception_backtrace]}#{path}:#{offset}#{terminal.reset} #{message}"
end
- if exception.cause and verbose
+ if exception.cause
format_exception(exception.cause, "Caused by ", output, terminal, verbose)
end
end
end
end