Handle Faraday errors

This commit is contained in:
Felix Auringer
2021-06-14 10:53:46 +02:00
committed by Sebastian Serth
parent b48b45de9f
commit 1d3f0d7ad8
4 changed files with 27 additions and 1 deletions

View File

@ -51,6 +51,9 @@ class ExecutionEnvironment < ApplicationRecord
Rails.logger.warn("Could not create execution environment in Poseidon, got response: #{response.as_json}")
false
rescue Faraday::Error => e
Rails.logger.warn("Could not create execution environment because of Faraday error: #{e.inspect}")
false
end
def to_json(*_args)