Skip to content

Fix missing package reference in error messages of scoped output steps - #20348

Merged
memsharded merged 9 commits into
conan-io:develop2from
czoido:czoido/output-scope-errors
Sep 25, 2026
Merged

memsharded merged 9 commits into
conan-io:develop2from
czoido:czoido/output-scope-errors

Conversation

@czoido

@czoido czoido commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Changelog: Fix: Error messages inside the source(), generate() and package() steps missing the package reference.
Docs: omit

After #20085, #20134 and #20234 while working on #19810 errors raised inside source(), generate() and package() lost the package reference:

2.29:      ERROR: pkg/1.0: Error in generate() method, line 12
develop2:  ERROR: Error in generate() method, line 12

conanfile_exception_formatter now takes an optional ref, passed explicitly at the three call
sites where display_name is blanked, instead of relying on str(conanfile).

@czoido czoido added this to the 2.33.0 milestone Sep 22, 2026
@czoido
czoido marked this pull request as draft September 22, 2026 14:45
@czoido
czoido marked this pull request as ready for review September 22, 2026 14:48
Comment thread test/integration/command/test_output.py Outdated
@memsharded
memsharded merged commit 190fa70 into conan-io:develop2 Sep 25, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants