get the actual error in the raise.

The error report syntax has probably changed.  This change catches the message now when the report is like the one below.
{"errors"=>[{"message"=>"The specified resource does not exist."}], "error_report_id"=>16754}

Sidenote:  thank you for writing this.  I has made my code a lot cleaner.