From 981f02c9bc7943c4012ede0ba42ca02cba5da93e Mon Sep 17 00:00:00 2001 From: Samuelfaure Date: Tue, 6 Aug 2024 12:53:21 +0700 Subject: [PATCH] more explicit error --- app/models/api_entreprise/endpoint.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/api_entreprise/endpoint.rb b/app/models/api_entreprise/endpoint.rb index 933c639f7..78f381005 100644 --- a/app/models/api_entreprise/endpoint.rb +++ b/app/models/api_entreprise/endpoint.rb @@ -40,7 +40,7 @@ def custom_provider_errors def load_dummy_definition! missing_endpoints_definition = I18n.t("api_entreprise.missing_endpoints.#{path}", default: nil) - raise 'Endpoint(s) not found, check endpoints paths are available in OpenAPI file or in missing_endpoints.yml' if missing_endpoints_definition.nil? + raise "Endpoint(s) #{path} not found, check endpoints paths are available in OpenAPI file or in missing_endpoints.yml" if missing_endpoints_definition.nil? @open_api_definition = missing_endpoints_definition.stringify_keys @dummy_definition = true