Commit 63379a4
authored
Fix misleading error message (#927)
When `rctx.which` can not find a program for the specified name, it
returns `None`.
We should not override the original `python_interpreter` in this case,
otherwise we'll see a misleading error message like `Error in fail:
python interpreter `None` not found in PATH`1 parent a475144 commit 63379a4
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
67 | 66 | | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
0 commit comments