Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread
Message: 97135
BY: Joeri Samson (joerisamson)
DATE: 2011-11-08 17:02
SUBJECT: Reraising errors

 

In Ruby 1.9.2 when an error is reraised (for example, when an activerecord transaction is interrupted), then you get a confusing backtrace, in which nothing is left whole of (a) the original backtrace, and (b) the original error message.

This seems to be caused by the way 1.9.2 tries to call to_str on the exception, (someone reported this as a bug on the ruby issue tracker, but so far no response has come http://redmine.ruby-lang.org/issues/5473)

A solution would be to define to_str


Thread View

Thread Author Date
Reraising errorsJoeri Samson2011-11-08 17:02
      RE: Reraising errorsarton Tajima2011-11-09 13:49

Post a followup to this message