Skip to content

Commit

Permalink
Remove mention of CapturingMapFn from error messages.
Browse files Browse the repository at this point in the history
CapturingMapFn was deleted in 76c8c3a.

Closes bazelbuild#14904.

PiperOrigin-RevId: 432784588
  • Loading branch information
benjaminp authored and copybara-github committed Mar 6, 2022
1 parent a9fb0fc commit 0dc078a
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,17 +100,16 @@ private DigestMap newDigestMap(CommandLineItem.MapFn<?> mapFn) {
throw new IllegalArgumentException(
String.format(
"Too many instances of CommandLineItem.ParametrizedMapFn '%s' detected. "
+ "Please construct fewer instances or use CommandLineItem.CapturingMapFn.",
+ "Please construct fewer instances.",
mapFnClass.getName()));
}
} else {
if (!seenMapFns.add(mapFnClass)) {
throw new IllegalArgumentException(
String.format(
"Illegal mapFn implementation: '%s'. "
+ "CommandLineItem.MapFn instances must be singletons. "
+ "Please see CommandLineItem.ParametrizedMapFn or "
+ "CommandLineItem.CapturingMapFn for alternatives.",
+ "CommandLineItem.MapFn instances must be singletons."
+ "Please see CommandLineItem.ParametrizedMapFn for an alternative.",
mapFnClass.getName()));
}
}
Expand Down

0 comments on commit 0dc078a

Please sign in to comment.