diff --git a/lib/rake/application.rb b/lib/rake/application.rb index d4e2680f6..f9c2a9f5a 100644 --- a/lib/rake/application.rb +++ b/lib/rake/application.rb @@ -215,7 +215,7 @@ def display_exception_details(ex) # :nodoc: display_exception_details_seen << ex display_exception_message_details(ex) - display_exception_backtrace(ex) + display_exception_backtrace(ex) if ex.backtrace display_cause_details(ex.cause) if has_cause?(ex) end