Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Descriptive error for invalid preset (#4673)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Mark committed Jul 22, 2017
1 parent 6ae93cf commit 17e6d2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parity/cli/presets/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ pub fn preset_config_string(arg: &str) -> Result<&'static str, Error> {
"non-standard-ports" => Ok(include_str!("./config.non-standard-ports.toml")),
"insecure" => Ok(include_str!("./config.insecure.toml")),
"dev-insecure" => Ok(include_str!("./config.dev-insecure.toml")),
_ => Err(Error::new(ErrorKind::InvalidInput, arg.clone()))
_ => Err(Error::new(ErrorKind::InvalidInput, "Config doesn't match any presets [dev, mining, non-standard-ports, insecure, dev-insecure]"))
}
}

0 comments on commit 17e6d2d

Please sign in to comment.