module Crowbar::Client::Mixin::SimpleError
A mixin with error related helpers
Public Instance Methods
format_error(response)
click to toggle source
# File lib/crowbar/client/mixin/simple_error.rb, line 29 def format_error(response) JSON.parse(response.body)["error"] rescue "Unable to format error response" end