{"record":{"id":"2394fea140724942","repo":"nikivdev/code","slug":"aborted","errorCode":null,"errorMessage":"Aborted.","messagePattern":"Aborted\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/fish_install.rs","lineNumber":24,"sourceCode":"\nuse anyhow::{Context, Result, bail};\n\nuse crate::cli::FishInstallOpts;\nuse crate::fish_trace;\n\npub fn run(opts: FishInstallOpts) -> Result<()> {\n    let bin_dir = opts.bin_dir.unwrap_or_else(default_bin_dir);\n    let fish_bin = bin_dir.join(\"fish\");\n\n    // Check if already installed\n    if fish_bin.exists() && !opts.force {\n        if is_traced_fish(&fish_bin)? {\n            println!(\"Traced fish is already installed at {}\", fish_bin.display());\n            println!(\"Use --force to reinstall.\");\n            return Ok(());\n        }\n        if !opts.yes && !confirm_overwrite(&fish_bin)? {\n            bail!(\"Aborted.\");\n        }\n    }\n\n    // Find fish source\n    let source = match opts.source {\n        Some(path) => {\n            if !path.join(\"Cargo.toml\").exists() {\n                bail!(\n                    \"No Cargo.toml found at {}. Is this the fish-shell repo?\",\n                    path.display()\n                );\n            }\n            path\n        }\n        None => {\n            let Some(path) = fish_trace::fish_source_path() else {\n                bail!(\n                    \"Could not find fish-shell source. Please specify --source or set FISH_SOURCE_PATH.\\n\\","sourceCodeStart":6,"sourceCodeEnd":42,"githubUrl":"https://github.com/nikivdev/code/blob/a747e741ae92c09071d0ae946ab48488adcff1ce/src/fish_install.rs#L6-L42","documentation":"Error \"Aborted.\" thrown in nikivdev/code.","triggerScenarios":"Thrown at src/fish_install.rs:24 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":"a747e741ae92c09071d0ae946ab48488adcff1ce","analyzedAt":"2026-09-01T22:43:55.719Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}