# File lib/rake/application.rb, line 148 148: def display_error_message(ex) 149: $stderr.puts "#{name} aborted!" 150: $stderr.puts ex.message 151: if options.trace 152: $stderr.puts ex.backtrace.join("\n") 153: else 154: $stderr.puts rakefile_location(ex.backtrace) 155: end 156: $stderr.puts "Tasks: #{ex.chain}" if has_chain?(ex) 157: $stderr.puts "(See full trace by running task with --trace)" unless options.trace 158: end