Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] new exception
@ 2009-09-05 19:08 Ben Walton
  2009-09-05 19:30 ` Rich Lane
  0 siblings, 1 reply; 7+ messages in thread
From: Ben Walton @ 2009-09-05 19:08 UTC (permalink / raw)



This attached exception log was generated after sending a reply,
before the inbox buffer was redisplayed.

I have the following small modifications to 99e62d55 included (still
required for importing to xapian in my case):

--snip--
-    raise ArgumentError, "expecting a symbol" unless t.is_a? Symbol
+    t = t.intern if t.is_a? String
+
+    unless t.is_a? Symbol
+      m = "expecting a symbol, got a #{t.class} (#{t.to_s})"
+      raise ArgumentError, m
+    end
+
--snip--

Thanks
-Ben
-- 
Ben Walton
Systems Programmer - CHASS
University of Toronto
C:416.407.5610 | W:416.978.4302

GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
Contact me to arrange for a CAcert assurance meeting.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: exception-log.txt
URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090905/ef8749ed/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090905/ef8749ed/attachment.bin>


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-09-06 17:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-05 19:08 [sup-talk] new exception Ben Walton
2009-09-05 19:30 ` Rich Lane
2009-09-05 19:35   ` Ben Walton
2009-09-05 19:55     ` Rich Lane
2009-09-05 21:57       ` Ben Walton
2009-09-06 17:02         ` Rich Lane
2009-09-06 17:22           ` Ben Walton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox