Skip to content

Commit

Permalink
Exception exits now use exit_because_of_exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimweirich committed Mar 25, 2013
1 parent b6c1bf7 commit c6b61c3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/rake/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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!"
Expand Down

0 comments on commit c6b61c3

Please sign in to comment.