Skip to content

Commit

Permalink
Merge pull request #384 from envato/viraptor/short-backtrace
Browse files Browse the repository at this point in the history
Show a short backtrace on error
  • Loading branch information
viraptor committed Jul 15, 2024
2 parents 523062e + 83a4f95 commit 143d627
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/stack_master/command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def success?
def error_message(e)
msg = "#{e.class} #{e.message}"
msg << "\n Caused by: #{e.cause.class} #{e.cause.message}" if e.cause
msg << "\n at #{e.cause.backtrace[0..3].join("\n ")}\n ..." if e.cause && !options.trace
if options.trace
msg << "\n#{backtrace(e)}"
else
Expand Down

0 comments on commit 143d627

Please sign in to comment.