mirror of
https://github.com/ziglang/zig.git
synced 2026-10-14 10:27:43 -04:00
CLI: better error message when build runner cannot be spawned
This commit is contained in:
1 parent
3844b91db7
commit
4135cc9d0b
1 file changed
+3
-1
+3
-1
@@ -5305,7 +5305,9 @@ fn cmdBuild(gpa: Allocator, arena: Allocator, args: []const []const u8) !void {
|
||||
const term = t: {
|
||||
std.debug.lockStdErr();
|
||||
defer std.debug.unlockStdErr();
|
||||
break :t try child.spawnAndWait();
|
||||
break :t child.spawnAndWait() catch |err| {
|
||||
fatal("unable to spawn {s}: {s}", .{ child_argv.items[0], @errorName(err) });
|
||||
};
|
||||
};
|
||||
|
||||
switch (term) {
|
||||
|
||||
Reference in new issue
Block a user