oven-sh/bun · error · exe_format::Error

{0}

Error message

{0}

What it means

Error "{0}" thrown in oven-sh/bun.

Source

Thrown at src/exe_format/error.rs:3

#[derive(Debug, thiserror::Error)]
pub enum Error {
    #[error("{0}")]
    Io(std::io::Error),
    #[error(transparent)]
    Macho(#[from] crate::macho::MachoError),
}

impl From<std::io::Error> for Error {
    fn from(e: std::io::Error) -> Self {
        Self::Io(e)
    }
}

impl Error {
    #[allow(clippy::trivially_copy_pass_by_ref)]
    pub fn name(&self) -> &'static str {
        match self {
            Self::Io(_) => "Io",
            Self::Macho(e) => <&'static str>::from(e),
        }

View on GitHub (pinned to 8c5296ac45)

When it happens

Trigger: Thrown at src/exe_format/error.rs:3 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of oven-sh/bun@8c5296ac45 (2026-08-16). Data as JSON: /api/errors/9a39b804af2a5ce3. Report an issue: GitHub.