Skip to content

Commit

Permalink
Improve a precondition failure message
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 232689469
  • Loading branch information
cushon authored and Copybara-Service committed Feb 6, 2019
1 parent 5fb52ab commit 44a4fd8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,8 @@ private Builder merge(Runfiles runfiles, boolean includeUnconditionalArtifacts,
}
// The suffix should be the same within any blaze build, except for the EMPTY runfiles, which
// may have an empty suffix, but that is covered above.
Preconditions.checkArgument(suffix.equals(runfiles.suffix));
Preconditions.checkArgument(
suffix.equals(runfiles.suffix), "%s != %s", suffix, runfiles.suffix);
if (includeUnconditionalArtifacts) {
artifactsBuilder.addTransitive(runfiles.getUnconditionalArtifacts());
}
Expand Down

0 comments on commit 44a4fd8

Please sign in to comment.