buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From as...@apache.org
Subject svn commit: r706427 - /incubator/buildr/trunk/lib/buildr/core/application.rb
Date Mon, 20 Oct 2008 22:16:25 GMT
Author: assaf
Date: Mon Oct 20 15:16:24 2008
New Revision: 706427

URL: http://svn.apache.org/viewvc?rev=706427&view=rev
Log:
Do not show stack trace when there is no buildfile (use --trace if you need to).

Modified:
    incubator/buildr/trunk/lib/buildr/core/application.rb

Modified: incubator/buildr/trunk/lib/buildr/core/application.rb
URL: http://svn.apache.org/viewvc/incubator/buildr/trunk/lib/buildr/core/application.rb?rev=706427&r1=706426&r2=706427&view=diff
==============================================================================
--- incubator/buildr/trunk/lib/buildr/core/application.rb (original)
+++ incubator/buildr/trunk/lib/buildr/core/application.rb Mon Oct 20 15:16:24 2008
@@ -481,7 +481,7 @@
         if options.trace
           $stderr.puts ex.backtrace.join("\n")
         else
-          $stderr.puts ex.backtrace.select { |str| str =~ /#{rakefile}/ }.map { |line| $terminal.color(line,
:red) }.join("\n")
+          $stderr.puts ex.backtrace.select { |str| str =~ /#{rakefile}/ }.map { |line| $terminal.color(line,
:red) }.join("\n") if rakefile
           $stderr.puts "(See full trace by running task with --trace)"
         end
         exit(1)



Mime
View raw message