diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-05-13 10:18:09 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-05-13 17:02:38 -0700 |
commit | c22d75b02784baa1713e0c007fcd0cb675dd9f43 (patch) | |
tree | 5e1d22a6b01c9824f5473bc8d900c471c068097b /commit.h | |
parent | e0cf3d8f8bc0480e67ac83502c10d6e6c38e1e11 (diff) |
reftable/writer: improve error when passed an invalid block size
The reftable format only supports block sizes up to 16MB. When the
writer is being passed a value bigger than that it simply calls
abort(3P), which isn't all that helpful due to the lack of a proper
error message.
Improve this by calling `BUG()` instead.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.h')
0 files changed, 0 insertions, 0 deletions