Skip to content

Commit a0db7f5

Browse files
Return an error if get_plz_bin_path badly fails
1 parent 0b61151 commit a0db7f5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • tools/please_pex/preamble

‎tools/please_pex/preamble/path.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ err_t *get_plz_bin_path(char **path) {
217217
if (STREQ(pex_dir, "/") || STREQ(pex_dir, ".")) {
218218
// If we reached the left-most component in the path, the .pex file doesn't exist within a
219219
// plz-out/ directory tree.
220+
err = err_from_str(".pex file is in neither a Please build environment nor a Please repo");
220221
goto end;
221222
}
222223
MALLOC(*path, char, strlen(pex_dir) + strlen("/bin") + 1);

0 commit comments

Comments
 (0)