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

{0}

Error message

{0}

What it means

Transparent passthrough variant of exe_format::Error: it wraps a std::io::Error and its Display simply forwards the inner error's message. It fires on any filesystem failure (read/write/seek/flush) while manipulating executable files; the real cause is the underlying I/O condition such as permissions, disk full, or a truncated file.

Solutions

  1. Inspect the wrapped std::io::Error kind/message for the actual filesystem cause
  2. Fix the environment (permissions, disk space, path validity) or retry transient I/O such as antivirus/file-lock interference on Windows
Defensive patterns

Strategy: try-catch

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.

Appendix: 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)