Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error message from getPrerequisites to not print internal details. #12551

Closed
wants to merge 1 commit into from

Conversation

katre
Copy link
Member

@katre katre commented Nov 24, 2020

Part of work on #11993.

@@ -131,8 +131,8 @@ public boolean isTestSuite(ConfiguredTarget target) {
throw new QueryException(
caller,
String.format(
"%s %s of type %s does not have attribute '%s'",
errorMsgPrefix, actualConfiguredTarget, rule.getRuleClass(), attrName),
"%sconfigured target of type %s does not have attribute '%s'",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this need a space between %s and configured ? It looks fine in the test but the error message above does seem to have a space after errorMsgPrefix.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, the passed-in prefix already has the space, and I didn't want to try and fix all the other uses to make it look nicer here.

@bazel-io bazel-io closed this in 8811e27 Nov 24, 2020
@katre katre deleted the i11993-03-fix-semantics-test branch November 24, 2020 23:55
philwo pushed a commit that referenced this pull request Mar 15, 2021
Part of work on #11993.

Closes #12551.

PiperOrigin-RevId: 344131151
philwo pushed a commit that referenced this pull request Mar 15, 2021
Part of work on #11993.

Closes #12551.

PiperOrigin-RevId: 344131151
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants