From c6b61c3acb425e8c7191f4d00cdbe9d5b224ea3f Mon Sep 17 00:00:00 2001 From: Jim Weirich Date: Mon, 14 Jan 2013 16:49:10 -0500 Subject: [PATCH] Exception exits now use exit_because_of_exception. --- lib/rake/application.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/rake/application.rb b/lib/rake/application.rb index 86467758a..747a8e74a 100644 --- a/lib/rake/application.rb +++ b/lib/rake/application.rb @@ -167,10 +167,16 @@ def standard_exception_handling rescue Exception => ex # Exit with error message display_error_message(ex) - exit(false) + exit_because_of_exception(ex) end end + # Exit the program because of an unhandle exception. + # (may be overridden by subclasses) + def exit_because_of_exception(ex) + exit(false) + end + # Display the error message that caused the exception. def display_error_message(ex) trace "#{name} aborted!"