Skip to content

fix(research): add error logging to catch {} handlers in tri_research.zig#180

Merged
gHashTag merged 1 commit into
mainfrom
feat/issue-177
Mar 11, 2026
Merged

fix(research): add error logging to catch {} handlers in tri_research.zig#180
gHashTag merged 1 commit into
mainfrom
feat/issue-177

Conversation

@gHashTag
Copy link
Copy Markdown
Owner

Summary

  • Replace silent catch {} error handlers with proper logging in cacheAnswer()
  • makePath() now logs warning on cache directory creation failure
  • writeAll() now logs warning on cache write failure

Changes

  • Line 263: catch {}catch |err| { std.log.warn(...) }
  • Line 266: catch {}catch |err| { std.log.warn(...) }

Test plan

  • zig ast-check src/tri/tri_research.zig passes
  • No more empty catch {} in file (grep verified)

Closes #177

🤖 Generated with Claude Code

Replace silent error swallowing with proper logging in cacheAnswer():
- makePath() now logs warning on cache dir creation failure
- writeAll() now logs warning on cache write failure

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@gHashTag gHashTag merged commit 1816268 into main Mar 11, 2026
4 of 6 checks passed
gHashTag added a commit that referenced this pull request Mar 18, 2026
fix(research): add error logging to catch {} handlers in tri_research.zig
@gHashTag gHashTag deleted the feat/issue-177 branch April 3, 2026 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(research): add error logging to catch {} handlers in tri_research.zig

1 participant