aboutsummaryrefslogtreecommitdiff
path: root/std
diff options
context:
space:
mode:
authorSahnvour <sahnvour@pm.me>2019-02-05 22:44:14 +0100
committerSahnvour <sahnvour@pm.me>2019-02-05 23:12:54 +0100
commita9faace8b4c9b2bef9425c4cdb136ff8fec056b8 (patch)
tree41827c291f6336b1bfb0da5940a883522e2676e7 /std
parentac4e38226b45081dfb66f006bba38b11c121ad45 (diff)
downloadzig-a9faace8b4c9b2bef9425c4cdb136ff8fec056b8.tar.gz
zig-a9faace8b4c9b2bef9425c4cdb136ff8fec056b8.zip
Notify failure to create a process when the executable is not found even in PATH.
Diffstat (limited to 'std')
-rw-r--r--std/os/child_process.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/std/os/child_process.zig b/std/os/child_process.zig
index 7aa8582369..37f75483a6 100644
--- a/std/os/child_process.zig
+++ b/std/os/child_process.zig
@@ -610,6 +610,9 @@ pub const ChildProcess = struct {
} else {
return err;
}
+ } else {
+ // Every other error would have been returned earlier.
+ return error.FileNotFound;
}
};