Task
In src/tri/tri_research.zig, lines 263 and 266 silently swallow errors:
std.fs.cwd().makePath(CACHE_DIR) catch {}; // line 263
file.writeAll(answer) catch {}; // line 266
Fix
Replace with error logging:
std.fs.cwd().makePath(CACHE_DIR) catch |err| {
std.log.warn("failed to create cache dir: {s}", .{@errorName(err)});
};
file.writeAll(answer) catch |err| {
std.log.warn("failed to write cache: {s}", .{@errorName(err)});
};
File
src/tri/tri_research.zig — lines 263, 266
Acceptance
zig build compiles without errors
zig fmt passes
- No empty
catch {} in this file
Task
In
src/tri/tri_research.zig, lines 263 and 266 silently swallow errors:Fix
Replace with error logging:
File
src/tri/tri_research.zig— lines 263, 266Acceptance
zig buildcompiles without errorszig fmtpassescatch {}in this file