lib/mistral_client/environment.rb in mistral_client-1.2.1 vs lib/mistral_client/environment.rb in mistral_client-1.3.0
- old
+ new
@@ -23,9 +23,10 @@
end
def delete!
resp = @server.delete("#{PATH}/#{@name}")
return true if resp.code == 204
+
raise MistralClient::MistralError,
"Could not perform the requested operation:\n#{resp.body}"
end
private