Skip to content

Commit

Permalink
Update src/tools.zig
Browse files Browse the repository at this point in the history
Co-authored-by: hndrk <51416554+hendriknielaender@users.noreply.github.com>
  • Loading branch information
jinzhongjia and hendriknielaender authored Aug 8, 2024
1 parent 8e22235 commit 90a14df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools.zig
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ pub fn http_get(allocator: std.mem.Allocator, uri: std.Uri) ![]const u8 {
try req.wait();

if (req.response.status != .ok) {
return error.ListResponseNotOk;
return error.HttpRequestFailed;
}

const res = try req.reader().readAllAlloc(allocator, 256 * 1024);
Expand Down

0 comments on commit 90a14df

Please sign in to comment.