1
0
Fork 0
mirror of https://codeberg.org/icewind/vbsp.git synced 2026-06-04 11:04:07 +02:00

restore UnexpectedHeader

This commit is contained in:
Robin Appelman 2025-02-19 23:15:02 +01:00
commit 7f2c927e7b
2 changed files with 10 additions and 1 deletions

View file

@ -7,6 +7,8 @@ use zip::result::ZipError;
#[non_exhaustive]
#[derive(Debug, Error)]
pub enum BspError {
#[error("unexpected magic numbers or version: {0:?}")]
UnexpectedHeader([u8; 4]),
#[error("bsp lump is out of bounds of the bsp file")]
LumpOutOfBounds(LumpEntry),
#[error("bsp game lump is out of bounds of the bsp file")]