You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by la...@apache.org on 2008/09/28 18:36:11 UTC

svn commit: r699859 - /incubator/buildr/trunk/lib/buildr/core/application.rb

Author: lacton
Date: Sun Sep 28 09:36:11 2008
New Revision: 699859

URL: http://svn.apache.org/viewvc?rev=699859&view=rev
Log:
Need more context to diagnose which task is raising an exception

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=699859&r1=699858&r2=699859&view=diff
==============================================================================
--- incubator/buildr/trunk/lib/buildr/core/application.rb (original)
+++ incubator/buildr/trunk/lib/buildr/core/application.rb Sun Sep 28 09:36:11 2008
@@ -471,7 +471,12 @@
         end
         return if @already_invoked
         @already_invoked = true
-        invoke_prerequisites(task_args, new_chain)
+        begin
+          invoke_prerequisites(task_args, new_chain)
+        rescue
+          trace "Exception while invoking prerequisites of task #{self.inspect}"
+          raise
+        end
         begin
           old_chain, Thread.current[:rake_chain] = Thread.current[:rake_chain], new_chain
           execute(task_args) if needed?