catch return swallows a fatal setup failureSeverity: LOW (UX/diagnostics)
Status: 🟢 FIXED
Files: src/main.zig (client entry, raw.setRaw() catch return)
If putting the terminal into raw mode fails (e.g. stdout isn’t a tty, tcsetattr denied), the client hits raw.setRaw() catch return and exits with status 0 having done nothing — no log line, no error, indistinguishable from success. A user scripting szn attach gets silent success with no session attached.
Log the failure and exit nonzero:
raw.setRaw() catch |err| {
std.log.err("failed to set raw mode: {t}", .{err});
std.process.exit(1);
};
src/main.zig, included raw_mod.Error in pub const Error.runInteractiveClient to log via std.log.err on failure in RawTerminal.init or setRaw and return the error.main() in src/main.zig to report Failed to set raw mode on terminal and exit with status 1 on raw terminal setup failure.src/main.zig verifying RawTerminal.init fails with error.GetAttrFailed on a non-tty pipe file descriptor.