From a9faace8b4c9b2bef9425c4cdb136ff8fec056b8 Mon Sep 17 00:00:00 2001 From: Sahnvour Date: Tue, 5 Feb 2019 22:44:14 +0100 Subject: Notify failure to create a process when the executable is not found even in PATH. --- std/os/child_process.zig | 3 +++ 1 file changed, 3 insertions(+) (limited to 'std') 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; } }; -- cgit v1.2.3