Installation

Add zig-error-handling to your build.zig.zon:

zig fetch --save git+https://github.com/zig-utils/zig-error-handling

Then wire the module up in build.zig:

const result = b.dependency("result", .{
    .target = target,
    .optimize = optimize,
});
exe.root_module.addImport("result", result.module("result"));

Requires Zig 0.15.0 or newer.

Or through Pantry:

pantry add zig-error-handling