{"action":"reopened","issue":{"url":"https://api.github.com/repos/fog/fog-aws/issues/112","labels_url":"https://api.github.com/repos/fog/fog-aws/issues/112/labels{/name}","comments_url":"https://api.github.com/repos/fog/fog-aws/issues/112/comments","events_url":"https://api.github.com/repos/fog/fog-aws/issues/112/events","html_url":"https://github.com/fog/fog-aws/issues/112","id":76432387,"number":112,"title":"\"NoMethodError: undefined method `body' for #<Fog::DNS::AWS::Error:0x007f6c673e1720>\"","user":{"login":"tysontate","id":111501,"avatar_url":"https://avatars.githubusercontent.com/u/111501?v=3","gravatar_id":"","url":"https://api.github.com/users/tysontate","html_url":"https://github.com/tysontate","followers_url":"https://api.github.com/users/tysontate/followers","following_url":"https://api.github.com/users/tysontate/following{/other_user}","gists_url":"https://api.github.com/users/tysontate/gists{/gist_id}","starred_url":"https://api.github.com/users/tysontate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tysontate/subscriptions","organizations_url":"https://api.github.com/users/tysontate/orgs","repos_url":"https://api.github.com/users/tysontate/repos","events_url":"https://api.github.com/users/tysontate/events{/privacy}","received_events_url":"https://api.github.com/users/tysontate/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-05-14T17:34:41Z","updated_at":"2015-05-26T16:47:20Z","closed_at":null,"body":"The following line of code is not expecting a `Fog::DNS::AWS::Error` to be returned, so it's blindly calling `.body` on the result of `service.change_resource_record_sets`:\r\n\r\nhttps://github.com/fog/fog-aws/blob/5903a7819b12ec6feb3b1d4177f9a1f4a4ca3a59/lib/fog/aws/models/dns/record.rb#L44\r\n\r\n```\r\ndata = service.change_resource_record_sets(zone.id, [options]).body\r\n```\r\n\r\nMy code is doing the following:\r\n\r\n```\r\nrecord = Fog::DNS['AWS'].zones.get( \"......\" ).records.new({\r\n  name: \"foo.foobar.com\",\r\n  value: \"ec2-123-123-123-123.compute-1.amazonaws.com\",\r\n  ttl: 600,\r\n  type: 'CNAME'\r\n})\r\nrecord.save # this line raises the error\r\n```"}}