diff --git a/app/lib/api_entreprise/api.rb b/app/lib/api_entreprise/api.rb index 884cb1a3c..52a9e73a2 100644 --- a/app/lib/api_entreprise/api.rb +++ b/app/lib/api_entreprise/api.rb @@ -73,7 +73,7 @@ class ApiEntreprise::API elsif response.code&.between?(401, 499) raise ResourceNotFound else - raise RequestFailed + raise RequestFailed, "HTTP Error Code: #{response.code}" end end