tags 513076 + wontfix thanks On 26/01/09 at 15:43 +0900, Junichi Uekawa wrote: > Package: ruby1.8 > Version: 1.8.7.72-1 > Severity: wishlist > > Backtrace of date.rb is not too useful it is instrumented with more > code. Is there a smarter way to go? > > To track down 'invalid date' error, I would have liked to know exact > point it was erroring out, but I needed to add something like this: > > diff -u /tmp/date.rb /usr/lib/ruby/1.8/date.rb > --- /tmp/date.rb 2009-01-26 15:41:44.320272686 +0900 > +++ /usr/lib/ruby/1.8/date.rb 2009-01-26 15:39:45.000000000 +0900 > @@ -1516,6 +1516,7 @@ > def self.civil(y=-4712, m=1, d=1, h=0, min=0, s=0, of=0, sg=ITALY) > unless (jd = valid_civil?(y, m, d, sg)) && > (fr = valid_time?(h, min, s)) > + $stderr.puts "year", y, "month", m, "day", d, "sg", sg > raise ArgumentError, 'invalid date' > end > if String === of
Hi Junichi, Please talk to upstream about that. -- | Lucas Nussbaum | lu...@lucas-nussbaum.net http://www.lucas-nussbaum.net/ | | jabber: lu...@nussbaum.fr GPG: 1024D/023B3F4F | -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org