Fix error displaying of the workspace members

This commit is contained in:
Clément Renault 2021-02-17 16:21:44 +01:00
parent b59fe77ec7
commit 78bede1ffb
No known key found for this signature in database
GPG Key ID: 92ADA4E935E71FA4
2 changed files with 2 additions and 20 deletions

View File

@ -179,18 +179,9 @@ enum Command {
PatchToNewExternalIds, PatchToNewExternalIds,
} }
fn main() -> Result<(), ()> { fn main() -> anyhow::Result<()> {
let opt = Opt::from_args(); let opt = Opt::from_args();
match run(opt) {
Ok(()) => Ok(()),
Err(e) => {
eprintln!("{}", e);
Err(())
},
}
}
fn run(opt: Opt) -> anyhow::Result<()> {
stderrlog::new() stderrlog::new()
.verbosity(opt.verbose) .verbosity(opt.verbose)
.show_level(false) .show_level(false)

View File

@ -39,18 +39,9 @@ pub struct Opt {
print_facet_distribution: bool, print_facet_distribution: bool,
} }
fn main() -> Result<(), ()> { fn main() -> anyhow::Result<()> {
let opt = Opt::from_args(); let opt = Opt::from_args();
match run(opt) {
Ok(()) => Ok(()),
Err(e) => {
eprintln!("{}", e);
Err(())
},
}
}
fn run(opt: Opt) -> anyhow::Result<()> {
stderrlog::new() stderrlog::new()
.verbosity(opt.verbose) .verbosity(opt.verbose)
.show_level(false) .show_level(false)