diff --git a/lib/console/event/failure.rb b/lib/console/event/failure.rb index 81f4acf..e530b84 100644 --- a/lib/console/event/failure.rb +++ b/lib/console/event/failure.rb @@ -55,7 +55,7 @@ def format_exception(exception, prefix, output, terminal, verbose) root_pattern = /^#{@root}\// if @root exception.backtrace&.each_with_index do |line, index| - path, offset, message = line.split(":") + path, offset, message = line.split(":", 3) style = :exception_backtrace # Make the path a bit more readable