Author: lacton
Date: Sun Sep 21 11:36:24 2008
New Revision: 697579

URL: http://svn.apache.org/viewvc?rev=697579&view=rev
Log:
Increased exception message readability

Modified:
    incubator/buildr/trunk/spec/eclipse_spec.rb

Modified: incubator/buildr/trunk/spec/eclipse_spec.rb
URL: 
http://svn.apache.org/viewvc/incubator/buildr/trunk/spec/eclipse_spec.rb?rev=697579&r1=697578&r2=697579&view=diff
==============================================================================
--- incubator/buildr/trunk/spec/eclipse_spec.rb (original)
+++ incubator/buildr/trunk/spec/eclipse_spec.rb Sun Sep 21 11:36:24 2008
@@ -30,14 +30,14 @@
   # <classpathentry path="PATH" output="RETURNED_VALUE"/>
   def classpath_specific_output path
     specific_output = classpath_xml_elements.collect("[EMAIL 
PROTECTED]'#{path}']") { |n| n.attributes['output'] }
-    raise "expected: one output attribute for path '#{path}, got: 
#{specific_output} " if specific_output.length > 1
+    raise "expected: one output attribute for path '#{path}, got: 
#{specific_output.inspect}" if specific_output.length > 1
     specific_output[0]
   end
   
   # <classpathentry path="RETURNED_VALUE" kind="output"/>
   def classpath_default_output
     default_output = classpath_xml_elements.collect("[EMAIL 
PROTECTED]'output']") { |n| n.attributes['path'] }
-    raise "expected: one path attribute for kind='output', got: 
#{default_output}" if default_output.length > 1
+    raise "expected: one path attribute for kind='output', got: 
#{default_output.inspect}" if default_output.length > 1
     default_output[0]
   end
   


Reply via email to