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

CurrentWorkingDirectoryUnlinked

Error message

CurrentWorkingDirectoryUnlinked

What it means

Error "CurrentWorkingDirectoryUnlinked" thrown in oven-sh/bun.

Source

Thrown at src/bun_core/error.rs:28

    Unexpected,
    #[error("InvalidByteSequence")]
    InvalidByteSequence,
    #[error("StringTooLong")]
    StringTooLong,
    #[error("InvalidCharacter")]
    InvalidCharacter,
    // errno-category names kept local (bun_core cannot depend on bun_errno):
    #[error("NoSpaceLeft")]
    NoSpaceLeft,
    #[error("NameTooLong")]
    NameTooLong,
    #[error("FileNotFound")]
    FileNotFound,
    #[error("AccessDenied")]
    AccessDenied,
    #[error("WriteFailed")]
    WriteFailed,
    #[error("CurrentWorkingDirectoryUnlinked")]
    CurrentWorkingDirectoryUnlinked,
    #[error(transparent)]
    Alloc(#[from] bun_alloc::AllocError),
}

impl Error {
    #[allow(clippy::trivially_copy_pass_by_ref)]
    pub fn name(&self) -> &'static str {
        match self {
            Self::EndOfStream => "EndOfStream",
            Self::StreamTooLong => "StreamTooLong",
            Self::FmtError => "FmtError",
            Self::Unexpected => "Unexpected",
            Self::InvalidByteSequence => "InvalidByteSequence",
            Self::StringTooLong => "StringTooLong",
            Self::InvalidCharacter => "InvalidCharacter",
            Self::NoSpaceLeft => "NoSpaceLeft",
            Self::NameTooLong => "NameTooLong",

View on GitHub (pinned to 8c5296ac45)

When it happens

Trigger: Thrown at src/bun_core/error.rs:28 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/14a77c81ded44d23. Report an issue: GitHub.