RiotGames/motherbrain — pull request #722 by winmillwill (2014-08-13 00:36:11+00:00)
Title: ensure abort() is passed an Exception

Apparently, Exception#cause does nothing to ensure that there is actually an
inner or original Exception instance, and this leads to an unhelpful error
message about expecting String and getting Nil when rescue in
`ChefMutex#synchronize()` finally calls `abort()`.

In my case, the error I needed was that the constraints in the environment
were untenable because I hadn't run `berks upload`.

I tried to write a spec for this, but wasn't able to assert that the mutex
should receive abort and that the argument should be a RuntimeError with
message 'foo'. It would either barf on me for having an error, hang, or never
receive any calls to abort.