We add lots of useful data to exceptions when they occur. It is currently available by the e.message. The problem is that sometimes other tools assume that to_s will return the same result as message. This sometimes can leave you wondering what happened. This fix will rely on the built in to_s for RuntimeError, and make the data available in message also available if you call to_s.
We add lots of useful data to exceptions when they occur. It is currently available by the
e.message
. The problem is that sometimes other tools assume thatto_s
will return the same result asmessage
. This sometimes can leave you wondering what happened. This fix will rely on the built into_s
forRuntimeError
, and make the data available inmessage
also available if you callto_s
.