Skip to content

Commit d1d2308

Browse files
authored
Made version failure message better reflect the issue (#717)
I ran into a sitation that triggered this failure. I have version 5.0.0 installed, so it was confusing to see a message telling me my version was lower than 0.2.1.
1 parent d598085 commit d1d2308

File tree

1 file changed

+1
-1
lines changed
  • third_party/github.com/bazelbuild/bazel-skylib/lib

1 file changed

+1
-1
lines changed

third_party/github.com/bazelbuild/bazel-skylib/lib/versions.bzl

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def _check_bazel_version(minimum_bazel_version, maximum_bazel_version = None, ba
8989
"""
9090
if not bazel_version:
9191
if "bazel_version" not in dir(native):
92-
fail("Current Bazel version is lower than 0.2.1; expected at least {}".format(
92+
fail("Bazel version cannot be determined; expected at least {}".format(
9393
minimum_bazel_version,
9494
))
9595
elif not native.bazel_version:

0 commit comments

Comments
 (0)