OneLauncher-Cracked/packages/oneclient_content/src/bundles/error.rs
2026-07-28 12:11:02 +02:00

22 lines
524 B
Rust

use thiserror::Error;
#[derive(Debug, Error)]
pub enum BundleError {
#[error("unknown loader '{0}' in bundles manifest")]
UnknownLoader(String),
#[error("invalid loader value '{0}' in bundles manifest")]
InvalidLoader(i64),
#[error("bundle path has no file name: {0}")]
InvalidPath(String),
#[error("failed to parse polymrpack manifest")]
InvalidManifest,
#[error("bundle file missing at {0}")]
MissingFile(String),
#[error("bundle not found: {0}")]
NotFound(String),
}