Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

make error message more useful

Markus Kahld8b584e2b9f8
diff --git a/lib/api/open_api.rb b/lib/api/open_api.rb
index 644c716e28b..7c9df0926de 100644
--- a/lib/api/open_api.rb
+++ b/lib/api/open_api.rb
@@ -119,7 +119,7 @@ module API
raise "Path not defined #{spec_path}" unless spec_files
spec_file = spec_files.find { |_k, v| v["$ref"] == file }&.first
- raise "Reference '#{file}' not valid within #{spec_path}" unless spec_file
+ raise "'#{file}' not defined under #{spec_path.join('.')} in `docs/api/apiv3/openapi-spec.yml`" unless spec_file
spec_file
end