authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-06-29 17:01:46-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-06-29 23:50:20-07:00
logfc7924d393c909fef785614b8273e719398db2c1
tree9032cf64d210f7de28c1b39f23672be21eeae750
parentcc9463e45782e469f3d3282f9abc900fb3978d4e

Maker: fatal rather than panic for unimplemented feature

When user passes --watch or --webui but has build.zig compile errors, instead of panicking it will explain there is an unimplemented build system feature.

1 files changed, 3 insertions(+), 3 deletions(-)

lib/compiler/Maker.zig+3-3
...@@ -847,10 +847,10 @@ pub fn main(init: process.Init.Minimal) !void {...@@ -847,10 +847,10 @@ pub fn main(init: process.Init.Minimal) !void {
847 _ = io.lockStderr(&.{}, graph.stderr_mode) catch {};847 _ = io.lockStderr(&.{}, graph.stderr_mode) catch {};
848 process.exit(1);848 process.exit(1);
849 }849 }
850 if (can_fs_watch) {850 if (watch and can_fs_watch) {
851 @panic("TODO set up fs watching");851 fatal("(zig build system) TODO set up fs watching even when build.zig compilation fails", .{});
852 } else {852 } else {
853 @panic("TODO wait for user to request rebuild");853 fatal("(zig build system) TODO stay running and wait for user to request rebuild even when build.zig compilation fails", .{});
854 }854 }
855 }855 }
856 }856 }