Skip to content

Commit

Permalink
The exception backtrace should be split into at most 3 pieces.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Apr 20, 2024
1 parent f7e3cc8 commit e84da25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/console/event/failure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e84da25

Please sign in to comment.