Skip to content

Commit

Permalink
log unknown response codes
Browse files Browse the repository at this point in the history
  • Loading branch information
Beyley committed Aug 27, 2023
1 parent 7fef9a9 commit 7919fac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lbp.zig
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ fn makeRequestAndParse(allocator: std.mem.Allocator, comptime T: type, uri: std.
if (request.response.status == .not_found) {
return RequestError.ErrorCode404;
} else if (request.response.status != .ok) {
std.debug.print("got unknown response code {s}\n", .{@tagName(request.response.status)});
return RequestError.UnknownHttpErrorCode;
}

Expand Down

0 comments on commit 7919fac

Please sign in to comment.