Add more error details
This commit is contained in:
parent
6fdf002608
commit
f48b500f64
1 changed files with 1 additions and 1 deletions
|
|
@ -114,7 +114,7 @@ fn get_config(opts: &ConfigOpts) -> Result<(), anyhow::Error> {
|
|||
.locations
|
||||
.iter()
|
||||
.find(|location| location.name == opts.location)
|
||||
.ok_or_else(|| anyhow::anyhow!("no such location"))?;
|
||||
.ok_or_else(|| anyhow::anyhow!("no such location: {}", opts.location))?;
|
||||
debug!("location = {:?}", &location);
|
||||
let keys = generage_keys()?;
|
||||
debug!("keys = {:?}", &keys);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue