{"record":{"id":"6995bd2b60655307","repo":"oven-sh/bun","slug":"invalidargument","errorCode":null,"errorMessage":"InvalidArgument","messagePattern":"InvalidArgument","errorType":"validation","errorClass":"clap::Error","httpStatus":null,"severity":"error","filePath":"src/clap/error.rs","lineNumber":7,"sourceCode":"#[derive(Debug, Clone, Copy, PartialEq, Eq, thiserror::Error)]\npub enum Error {\n    #[error(\"DoesntTakeValue\")]\n    DoesntTakeValue,\n    #[error(\"MissingValue\")]\n    MissingValue,\n    #[error(\"InvalidArgument\")]\n    InvalidArgument,\n    #[error(\"WriteFailed\")]\n    WriteFailed,\n}\n\nimpl Error {\n    #[allow(clippy::trivially_copy_pass_by_ref)]\n    pub fn name(&self) -> &'static str {\n        match self {\n            Self::DoesntTakeValue => \"DoesntTakeValue\",\n            Self::MissingValue => \"MissingValue\",\n            Self::InvalidArgument => \"InvalidArgument\",\n            Self::WriteFailed => \"WriteFailed\",\n        }\n    }\n}\n\nimpl bun_core::output::ErrName for Error {","sourceCodeStart":1,"sourceCodeEnd":25,"githubUrl":"https://github.com/oven-sh/bun/blob/8c5296ac459e8252d3cd702f3fbcbb0c249d95d5/src/clap/error.rs#L1-L25","documentation":"Error \"InvalidArgument\" thrown in oven-sh/bun.","triggerScenarios":"Thrown at src/clap/error.rs:7 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8c5296ac459e8252d3cd702f3fbcbb0c249d95d5","analyzedAt":"2026-08-16T08:01:58.794Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}