Skip to content

Commit

Permalink
Support #detailed_message when task failed
Browse files Browse the repository at this point in the history
  • Loading branch information
ksss committed Mar 30, 2023
1 parent 8d3e23a commit 857e7e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/rake/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ def has_cause?(ex) # :nodoc:
def display_exception_message_details(ex) # :nodoc:
if ex.instance_of?(RuntimeError)
trace ex.message
elsif ex.respond_to?(:detailed_message)
trace "#{ex.class.name}: #{ex.detailed_message(highlight: false)}"
else
trace "#{ex.class.name}: #{ex.message}"
end
Expand Down

0 comments on commit 857e7e3

Please sign in to comment.