From: Ryan Davis Date: 2011-01-04T09:42:12+09:00 Subject: [ruby-core:34039] Re: Exception#to_s and non-String Messages On Jan 3, 2011, at 14:44 , Run Paint Run Run wrote: > I don't know when Redmine will be back up, so: > > Exception objects allow an arbitrary object for the message: > >>> RUBY_REVISION > => 30240 >>> FiberError.exception([]).message > => [] >>> Exception.new(Object.new).message > => # > > And Exception#to_s returns said object verbatim: > >>> FiberError.exception([]).to_s > => [] > > This breaks the contract of #to_s returning either a String or nil. You find awesome stuff!