Skip to content

fix(ws): replace catch unreachable with proper error in intelligence_server.zig #160

@gHashTag

Description

@gHashTag

Task

In src/tri/websocket/intelligence_server.zig line 211, address resolution uses catch unreachable:

.address = stream.address catch unreachable,

Network address resolution can fail. Handle the error properly.

Fix

Replace with proper error handling:

.address = stream.address catch |err| {
    std.log.err("Failed to get stream address: {}", .{err});
    return err;
},

Or use try:

.address = try stream.address,

File

  • src/tri/websocket/intelligence_server.zig — line 211

Acceptance

  • zig build compiles without errors
  • zig fmt passes
  • No catch unreachable on address resolution

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent:spawnAuto-spawn agent container

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions