Module: Fog::Compute::Joyent::Errors::MessageParserMixin

Instance Method Summary collapse

Instance Method Details

#messageObject



7
8
9
10
11
12
13
# File 'lib/fog/joyent/errors.rb', line 7

def message
  if response.body["code"] && response.body["message"]
    "[ERROR #{response.body['code']}] : #{response.body['message']}"
  else
    ''
  end
end

#to_sObject



15
16
17
# File 'lib/fog/joyent/errors.rb', line 15

def to_s
  message
end