Skip to content

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

Closed
katre wants to merge 1 commit intobazelbuild:masterfrom
katre:i11993-03-fix-semantics-test
Closed

Fix error message from getPrerequisites to not print internal details.#12551
katre wants to merge 1 commit intobazelbuild:masterfrom
katre:i11993-03-fix-semantics-test

Conversation

@katre
Copy link
Copy Markdown
Collaborator

@katre katre commented Nov 24, 2020

Part of work on #11993.

@katre katre requested a review from juliexxia November 24, 2020 16:33
@google-cla google-cla Bot added the cla: yes label Nov 24, 2020
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
Copy Markdown
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
Copy Markdown
Collaborator 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