Task
In src/tri/tri_history.zig, multiple functions silently swallow errors with empty catch {} handlers. This hides persistence failures.
Find ALL instances of catch {} in this file and add error logging.
Fix Pattern
Replace:
self.history.load() catch {};
With:
self.history.load() catch |err| {
std.log.debug("history load: {s}", .{@errorName(err)});
};
Use std.log.debug (not std.debug.print) for consistency.
File
src/tri/tri_history.zig — all catch {} instances
Acceptance
zig build compiles without errors
zig fmt passes
- No empty
catch {} handlers remaining in this file
- Each catch logs the error name via
std.log.debug
Task
In
src/tri/tri_history.zig, multiple functions silently swallow errors with emptycatch {}handlers. This hides persistence failures.Find ALL instances of
catch {}in this file and add error logging.Fix Pattern
Replace:
With:
Use
std.log.debug(notstd.debug.print) for consistency.File
src/tri/tri_history.zig— allcatch {}instancesAcceptance
zig buildcompiles without errorszig fmtpassescatch {}handlers remaining in this filestd.log.debug