[Archipelago-submits] [221] trunk/oneliner/lib/oneliner/superstring.rb: better error message

nobody at rubyforge.org nobody at rubyforge.org
Sun Mar 4 17:49:23 EST 2007


Revision: 221
Author:   zond
Date:     2007-03-04 17:49:22 -0500 (Sun, 04 Mar 2007)

Log Message:
-----------
better error message

Modified Paths:
--------------
    trunk/oneliner/lib/oneliner/superstring.rb

Modified: trunk/oneliner/lib/oneliner/superstring.rb
===================================================================
--- trunk/oneliner/lib/oneliner/superstring.rb	2007-03-04 18:49:53 UTC (rev 220)
+++ trunk/oneliner/lib/oneliner/superstring.rb	2007-03-04 22:49:22 UTC (rev 221)
@@ -65,7 +65,7 @@
     # Returns whether decoding is done.
     #
     def decode!(chunk)
-      raise "chunk is too small for metadata (8 bytes)" unless chunk.size > 7
+      raise "#{chunk.inspect} is too small for metadata (8 bytes)" unless chunk.size > 7
 
       @decode_done = nil
 




More information about the Archipelago-submits mailing list