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

Instance Method Summary collapse

Instance Method Details

#messageObject


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

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

#to_sObject


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

def to_s
  message
end