ruby-changes:23494
From: akr <ko1@a...>
Date: Sun, 6 May 2012 14:51:23 +0900 (JST)
Subject: [ruby-changes:23494] akr:r35545 (trunk): * lib/securerandom.rb: show actual read length in an error message.
akr 2012-05-06 14:51:13 +0900 (Sun, 06 May 2012) New Revision: 35545 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=35545 Log: * lib/securerandom.rb: show actual read length in an error message. Modified files: trunk/ChangeLog trunk/lib/securerandom.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 35544) +++ ChangeLog (revision 35545) @@ -1,3 +1,7 @@ +Sun May 6 14:50:03 2012 Tanaka Akira <akr@f...> + + * lib/securerandom.rb: show actual read length in an error message. + Sat May 5 06:43:10 2012 Ryan Davis <ryand-ruby@z...> * lib/minitest/*: Imported minitest 2.12.1 (r7323) Index: lib/securerandom.rb =================================================================== --- lib/securerandom.rb (revision 35544) +++ lib/securerandom.rb (revision 35545) @@ -80,7 +80,7 @@ @has_urandom = true ret = f.read(n) if ret.length != n - raise NotImplementedError, "Unexpected partial read from random device" + raise NotImplementedError, "Unexpected partial read from random device: only #{ret.length} for #{n}" end return ret } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/