mirror of
https://github.com/nix-community/nurl.git
synced 2024-08-16 21:41:20 +03:00
fix placeholder error message
This commit is contained in:
parent
c8d3a7e0b5
commit
6fc0d29d5e
@ -21,7 +21,7 @@ pub struct Opts {
|
||||
pub indent: usize,
|
||||
}
|
||||
|
||||
#[derive(Clone, ValueEnum)]
|
||||
#[derive(Clone, Debug, ValueEnum)]
|
||||
#[clap(rename_all = "camelCase")]
|
||||
pub enum Fetcher {
|
||||
FetchFromGitHub,
|
||||
|
@ -48,10 +48,14 @@ fn main() -> Result<()> {
|
||||
}
|
||||
|
||||
(
|
||||
Some(Fetcher::FetchFromGitHub | Fetcher::FetchFromGitLab | Fetcher::FetchFromSourcehut),
|
||||
Some(
|
||||
fetcher @ (Fetcher::FetchFromGitHub
|
||||
| Fetcher::FetchFromGitLab
|
||||
| Fetcher::FetchFromSourcehut),
|
||||
),
|
||||
None,
|
||||
) => {
|
||||
bail!("bad");
|
||||
bail!("{fetcher:?} does not support URLs without a host");
|
||||
}
|
||||
|
||||
(Some(Fetcher::Fetchgit), _) | (None, _) => {
|
||||
|
Loading…
Reference in New Issue
Block a user