We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 78e31d1 + 5f781cf commit 49dfb82Copy full SHA for 49dfb82
1 file changed
src/tri/command_interface.zig
@@ -176,7 +176,9 @@ pub fn listCategory(category: CommandCategory) []const CommandMetadata {
176
177
for (registry.items) |cmd| {
178
if (std.mem.eql(u8, cmd.category, cat_str)) {
179
- result.append(cmd) catch {};
+ result.append(cmd) catch |err| {
180
+ std.log.warn("command append failed: {s}", .{@errorName(err)});
181
+ };
182
}
183
184
@@ -244,7 +246,9 @@ pub fn listMcpTools() []const McpToolSchema {
244
246
245
247
248
if (cmd.mcp_enabled) {
- result.append(toMcpTool(cmd)) catch {};
249
+ result.append(toMcpTool(cmd)) catch |err| {
250
+ std.log.warn("MCP tool append failed: {s}", .{@errorName(err)});
251
252
253
254
0 commit comments