lib/fog/azurerm/requests/sql/delete_database.rb in fog-azure-rm-0.0.9 vs lib/fog/azurerm/requests/sql/delete_database.rb in fog-azure-rm-0.1.0

- old
+ new

@@ -13,14 +13,14 @@ resource_url, accept: :json, content_type: :json, authorization: token ) - Fog::Logger.debug "SQL Database: #{name} deleted successfully." - true - rescue MsRestAzure::AzureOperationError => e - raise_azure_exception(e, JSON.parse(e.response)['message']) + rescue RestClient::Exception => e + raise JSON.parse(e.response)['message'] end + Fog::Logger.debug "SQL Database: #{name} deleted successfully." + true end end # Mock class for Sql Database Request class Mock