fetch: combine unpack error validation in a single function

Follow up of: #19500
[discussion](https://github.com/ziglang/zig/pull/19500#discussion_r1558238138)
9cfac4718dIgor Anić committed on 4/11/2024, 10:44:40 PM· committed by Andrew Kelleyparent0ac15b9
1 file changedLine totals unavailable