atomicjolt / lms_api

Ruby wrapper for the Canvas API
MIT License
6 stars 2 forks source link

Add error info to exception.to_s #11

Closed nick-benoit14 closed 6 years ago

nick-benoit14 commented 6 years ago

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.