Method: Rake::Application#display_error_message
- Defined in:
- lib/rake/application.rb
#display_error_message(ex) ⇒ Object
Display the error message that caused the exception.
185 186 187 188 189 190 191 192 193 194 195 196 |
# File 'lib/rake/application.rb', line 185 def (ex) trace "#{name} aborted!" trace ex. if .backtrace trace ex.backtrace.join("\n") else trace Backtrace.collapse(ex.backtrace).join("\n") end trace "Tasks: #{ex.chain}" if has_chain?(ex) trace "(See full trace by running task with --trace)" unless .backtrace end |