diff options
| author | Sahnvour <sahnvour@pm.me> | 2019-02-05 22:44:14 +0100 |
|---|---|---|
| committer | Sahnvour <sahnvour@pm.me> | 2019-02-05 23:12:54 +0100 |
| commit | a9faace8b4c9b2bef9425c4cdb136ff8fec056b8 (patch) | |
| tree | 41827c291f6336b1bfb0da5940a883522e2676e7 /std | |
| parent | ac4e38226b45081dfb66f006bba38b11c121ad45 (diff) | |
| download | zig-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.zig | 3 |
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; } }; |
