Skip to content

Commit 0b5c455

Browse files
laramielcopybara-github
authored andcommitted
trivial log change in bazel local_python_runtime rule
PiperOrigin-RevId: 822799779 Change-Id: I04d7da7937cd783b72c35acbfca8f19a8e282951
1 parent ef8169f commit 0b5c455

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bazel/repo_rules/local_python_runtime.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def _local_python_repo_impl(rctx):
135135

136136
result = py_utils.get_python_interpreter(rctx, rctx.attr.interpreter_path)
137137
if not result.resolved_path:
138-
_emit_log(lambda: "interpreter not found: {}".format(result.describe_failure()))
138+
_emit_log(lambda: "python interpreter not found: {}".format(result.describe_failure()))
139139

140140
# else, on_failure must be skip
141141
rctx.file("BUILD.bazel", _expand_incompatible_template())
@@ -149,7 +149,7 @@ def _local_python_repo_impl(rctx):
149149
logger = logger,
150150
)
151151
if not result.info:
152-
_emit_log(lambda: "GetPythonInfo failed: {}".format(result.describe_failure()))
152+
_emit_log(result.describe_failure)
153153

154154
# else, on_failure must be skip
155155
rctx.file("BUILD.bazel", _expand_incompatible_template())

0 commit comments

Comments
 (0)