Skip to content

Commit

Permalink
chore: elaborate error message for command not found
Browse files Browse the repository at this point in the history
  • Loading branch information
s3i7h committed Apr 17, 2024
1 parent 8a5dd5d commit 8663b31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cmd/browse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ fn open_url(url: &url::Url) -> Result<()> {
}
}

Err(anyhow!("no commands were found to open the url"))
let commands = commands.join(", ");
Err(anyhow!("Command not found: you need one of the following commands to open a url: {commands}"))
}

#[derive(Debug, Parser)]
Expand Down

0 comments on commit 8663b31

Please sign in to comment.