From fc7924d393c909fef785614b8273e719398db2c1 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 29 Jun 2026 17:01:46 -0700 Subject: [PATCH] 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. --- lib/compiler/Maker.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/compiler/Maker.zig b/lib/compiler/Maker.zig index c9e739d53e136496c0c8e6aa33d1cb3eeaf4a5fc..d35a9dd53751001fdcace80f7ece432baf4f185b 100644 --- a/lib/compiler/Maker.zig +++ b/lib/compiler/Maker.zig @@ -847,10 +847,10 @@ pub fn main(init: process.Init.Minimal) !void { _ = io.lockStderr(&.{}, graph.stderr_mode) catch {}; process.exit(1); } - if (can_fs_watch) { - @panic("TODO set up fs watching"); + if (watch and can_fs_watch) { + fatal("(zig build system) TODO set up fs watching even when build.zig compilation fails", .{}); } else { - @panic("TODO wait for user to request rebuild"); + fatal("(zig build system) TODO stay running and wait for user to request rebuild even when build.zig compilation fails", .{}); } } } -- 2.54.0