nikivdev/code · error

Aborted.

Error message

Aborted.

What it means

Error "Aborted." thrown in nikivdev/code.

Source

Thrown at src/fish_install.rs:24

use anyhow::{Context, Result, bail};

use crate::cli::FishInstallOpts;
use crate::fish_trace;

pub fn run(opts: FishInstallOpts) -> Result<()> {
    let bin_dir = opts.bin_dir.unwrap_or_else(default_bin_dir);
    let fish_bin = bin_dir.join("fish");

    // Check if already installed
    if fish_bin.exists() && !opts.force {
        if is_traced_fish(&fish_bin)? {
            println!("Traced fish is already installed at {}", fish_bin.display());
            println!("Use --force to reinstall.");
            return Ok(());
        }
        if !opts.yes && !confirm_overwrite(&fish_bin)? {
            bail!("Aborted.");
        }
    }

    // Find fish source
    let source = match opts.source {
        Some(path) => {
            if !path.join("Cargo.toml").exists() {
                bail!(
                    "No Cargo.toml found at {}. Is this the fish-shell repo?",
                    path.display()
                );
            }
            path
        }
        None => {
            let Some(path) = fish_trace::fish_source_path() else {
                bail!(
                    "Could not find fish-shell source. Please specify --source or set FISH_SOURCE_PATH.\n\

View on GitHub (pinned to a747e741ae)

When it happens

Trigger: Thrown at src/fish_install.rs:24 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of nikivdev/code@a747e741ae (2026-09-01). Data as JSON: /api/errors/2394fea140724942. Report an issue: GitHub.