Permalink
Browse files

Exception exits now use exit_because_of_exception.

  • Loading branch information...
1 parent b6c1bf7 commit c6b61c3acb425e8c7191f4d00cdbe9d5b224ea3f @jimweirich committed Jan 14, 2013
Showing with 7 additions and 1 deletion.
  1. +7 −1 lib/rake/application.rb
View
@@ -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!"

0 comments on commit c6b61c3

Please sign in to comment.