Skip to content

Comments

Make the error message when an unrecognized attribute is used in a Buildable more useful.#593

Merged
copybara-service[bot] merged 1 commit intomainfrom
test_819920081
Oct 21, 2025
Merged

Make the error message when an unrecognized attribute is used in a Buildable more useful.#593
copybara-service[bot] merged 1 commit intomainfrom
test_819920081

Conversation

@copybara-service
Copy link

Make the error message when an unrecognized attribute is used in a Buildable more useful.

We often deal with configs with 1k+ lines and this common error message puts the missing attribute at the top before printing out the entire Buildable. At best, it is difficult to figure out the missing attribute, but usually, it is beyond the pagination limit. This change explicitly lists the Buildable's qualified name and missing attribute at the end so it is easy to identify.

@google-cla
Copy link

google-cla bot commented Oct 15, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@copybara-service copybara-service bot force-pushed the test_819920081 branch 2 times, most recently from 94bc97d to 04057e1 Compare October 21, 2025 13:47
…ildable more useful.

We often deal with configs with 1k+ lines and this common error message puts the missing attribute at the top before printing out the entire Buildable. At best, it is difficult to figure out the missing attribute, but usually, it is beyond the pagination limit. This change explicitly lists the Buildable's qualified name and missing attribute at the end so it is easy to identify.

PiperOrigin-RevId: 822097405
@copybara-service copybara-service bot merged commit 4954405 into main Oct 21, 2025
@copybara-service copybara-service bot deleted the test_819920081 branch October 21, 2025 13:54
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.

0 participants