lib/mistral_client/mixins/deletable.rb in mistral_client-1.2.1 vs lib/mistral_client/mixins/deletable.rb in mistral_client-1.3.0
- old
+ new
@@ -2,9 +2,10 @@
module Mixins
module Deletable
def delete!
resp = @server.delete("#{self.class::PATH}/#{id}")
return true if resp.code == 204
+
raise MistralClient::MistralError,
"Could not perform the requested operation:\n#{resp.body}"
end
end
end