diff --git a/lib/fog/aws/requests/dns/change_resource_record_sets.rb b/lib/fog/aws/requests/dns/change_resource_record_sets.rb index df6f859eb..04463d13d 100644 --- a/lib/fog/aws/requests/dns/change_resource_record_sets.rb +++ b/lib/fog/aws/requests/dns/change_resource_record_sets.rb @@ -161,7 +161,7 @@ module Fog when "DELETE" if zone[:records][change[:type]].nil? || zone[:records][change[:type]].delete(change[:name]).nil? errors << "Tried to delete resource record set #{change[:name]}. type #{change[:type]}, but it was not found" - else + end end end @@ -177,6 +177,7 @@ module Fog else response.status = 400 response.body = "#{errors.map {|e| "#{e}"}.join()}" + raise(Excon::Errors.status_error({:expects => 200}, response)) end else response.status = 404