From d31b1ac9e56ed94e2fb083e27fcfc0043a69b2c8 Mon Sep 17 00:00:00 2001 From: Jan Biedermann Date: Wed, 30 Nov 2022 11:17:45 +0100 Subject: [PATCH] Fix exception when exception has nil backtrace --- lib/rake/application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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