You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by as...@apache.org on 2008/03/10 23:37:30 UTC

svn commit: r635740 - /incubator/buildr/trunk/lib/ide/eclipse.rb

Author: assaf
Date: Mon Mar 10 15:37:25 2008
New Revision: 635740

URL: http://svn.apache.org/viewvc?rev=635740&view=rev
Log:
raise of one, throw of the other

Modified:
    incubator/buildr/trunk/lib/ide/eclipse.rb

Modified: incubator/buildr/trunk/lib/ide/eclipse.rb
URL: http://svn.apache.org/viewvc/incubator/buildr/trunk/lib/ide/eclipse.rb?rev=635740&r1=635739&r2=635740&view=diff
==============================================================================
--- incubator/buildr/trunk/lib/ide/eclipse.rb (original)
+++ incubator/buildr/trunk/lib/ide/eclipse.rb Mon Mar 10 15:37:25 2008
@@ -62,7 +62,7 @@
 
           # Find a path relative to the project's root directory.
           relative = lambda do |path|
-            path or throw "Invalid path '#{path.inspect}'"
+            path or raise "Invalid path '#{path.inspect}'"
             msg = [:to_path, :to_str, :to_s].find { |msg| path.respond_to? msg }
             path = path.__send__(msg)
             Pathname.new(File.expand_path(path)).relative_path_from(Pathname.new(project.path_to)).to_s