Skip to content

fix(cmd): replace catch {} with error logging in command_interface.zig#184

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

fix(cmd): replace catch {} with error logging in command_interface.zig#184
gHashTag merged 1 commit into
mainfrom
feat/issue-181

Conversation

@gHashTag
Copy link
Copy Markdown
Owner

Summary

  • Replace silent catch {} error swallowing with proper std.log.warn() logging in listCategory() (line 179) and listMcpTools() (line 247)
  • OOM failures from ArrayList append operations are now logged instead of silently ignored

Changes

  • src/tri/command_interface.zig: Two locations updated with error logging pattern

Acceptance Criteria Met

  • zig fmt passes
  • No empty catch {} in this file
  • Proper error logging with std.log.warn()

Closes #181

🤖 Generated with Claude Code

#181)

Replace silent error swallowing in listCategory() and listMcpTools()
with proper std.log.warn() calls to log OOM failures.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@gHashTag gHashTag merged commit 49dfb82 into main Mar 11, 2026
4 of 6 checks passed
gHashTag added a commit that referenced this pull request Mar 18, 2026
fix(cmd): replace catch {} with error logging in command_interface.zig
@gHashTag gHashTag deleted the feat/issue-181 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(cmd): replace catch {} with error logging in command_interface.zig

1 participant