diff --git a/src/main.zig b/src/main.zig index b55e9c9111cca5166a5b00d15bcdd1d7f14fb949..e2ec2fc1fc864d65c43c915852e747dae5d76fcc 100644 --- a/src/main.zig +++ b/src/main.zig @@ -2121,8 +2121,11 @@ fn runOrTest( if (!watch) return cleanExit(); return; }, - .run => fatal("unable to execute {s}: non-native", .{exe_path}), - else => unreachable, + else => { + std.log.err("unable to execute {s}: non-native", .{exe_path}); + if (!watch) process.exit(1); + return; + }, } } // when testing pass the zig_exe_path to argv