Skip to content

Commit

Permalink
more explicit error
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuelfaure committed Aug 6, 2024
1 parent 309d4e9 commit 981f02c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/api_entreprise/endpoint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 981f02c

Please sign in to comment.