use thiserror::Error;
#[derive(Error, Debug)]
pub enum TwiggyAnalysisError {
#[error("I/O error: {0}")]
Io(#[from] std::io::Error),
#[error("WASM file not found: {0}")]
WasmFileNotFound(String),
#[error("Twiggy {0} command failed with status {1}")]
CommandFailed(String, i32),
#[error("UTF-8 error: {0}")]
Utf8(#[from] std::string::FromUtf8Error),
}