Skip to content

Commit b1387c7

Browse files
committed
fix error message more
1 parent 8b97dc1 commit b1387c7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

python/private/local_runtime_repo.bzl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,11 @@ def _find_python_exe_from_target(rctx):
290290
attempted_paths.append(path)
291291

292292
describe_failure = lambda: (
293-
"Target '{}' could not be resolved to a valid path. " +
294-
"Attempted paths: {paths}".format("\n".join([str(p) for p in attempted_paths]))
293+
"Target '{target}' could not be resolved to a valid path. " +
294+
"Attempted paths: {paths}".format(
295+
target = rctx.attr.interpreter_target,
296+
paths = "\n".join([str(p) for p in attempted_paths]),
297+
)
295298
)
296299
return None, describe_failure
297300

0 commit comments

Comments
 (0)