Fix call to the fail skylark global in junit.bzl

The fail function takes an already formatted message,
it does not provide for formatting arguments, the
way Python's logger.log does, for example.

I did not find any other improperly made call to fail
in the rest of the bazlets project.

C.f. https://docs.bazel.build/versions/master/skylark/lib/globals.html#fail

Change-Id: If187b4d1f97ef331ead8a34f499c97cd8d5728f9
This commit is contained in:
Jiri Danek 2018-07-12 09:14:16 +02:00 committed by David Pursehouse
parent c3d8c937dd
commit 5b3d230a79

View File

@ -43,11 +43,7 @@ def _AsClassName(fname):
if findex != -1:
break
if findex == -1:
fail(
"%s does not contain any of %s",
fname,
_PREFIXES,
)
fail("%s does not contain any of %s" % (fname, _PREFIXES))
return ".".join(toks[findex:]) + ".class"
def _impl(ctx):