diff options
author | Carpenter, Adam (CORP) <adam.carpenter@adp.com> | 2021-12-01 13:40:47 -0500 |
---|---|---|
committer | Carpenter, Adam (CORP) <adam.carpenter@adp.com> | 2021-12-01 13:40:47 -0500 |
commit | 2f4c5cac2679ebad54ada7bbcb57c60b5521d52d (patch) | |
tree | d64cbe44ff563d1fde161fb827f7cabe1b4e8bf8 | |
parent | 3153c560152f433205a9875ceb232626996c0a1a (diff) | |
download | altruistic-angelshark-2f4c5cac2679ebad54ada7bbcb57c60b5521d52d.tar.xz altruistic-angelshark-2f4c5cac2679ebad54ada7bbcb57c60b5521d52d.zip |
fix: #2
-rw-r--r-- | angelsharkcli/src/main.rs | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/angelsharkcli/src/main.rs b/angelsharkcli/src/main.rs index 9d1ac36..6c8ea37 100644 --- a/angelsharkcli/src/main.rs +++ b/angelsharkcli/src/main.rs @@ -1,4 +1,4 @@ -use anyhow::{anyhow, Context, Error, Result}; +use anyhow::{Context, Error, Result}; use clap::{App, Arg, ArgMatches, SubCommand}; use csv::{QuoteStyle, WriterBuilder}; use libangelshark::{Acm, AcmRunner, Message, ParallelIterator}; @@ -29,10 +29,7 @@ fn main() -> Result<()> { AcmRunner::new(acms, inputs) .manuals() .for_each(|(name, output)| match output { - Err(e) => eprintln!( - "{}", - anyhow!(e).context(format!("angelsharkcli: manual ({})", name)) - ), + Err(e) => eprintln!("angelsharkcli: manual ({}): {}", name, e), Ok(o) => println!("{}", o), }); } @@ -128,19 +125,12 @@ fn main() -> Result<()> { .run() .for_each(|(name, output)| match output { Err(e) => { - eprintln!( - "{}", - anyhow!(e).context(format!("angelsharkcli: runner ({})", name)) - ); + eprintln!("angelsharkcli: runner ({}): {}", name, e); } Ok(o) => { for msg in o { if let Some(e) = msg.error { - eprintln!( - "{}", - anyhow!(e) - .context(format!("angelsharkcli: ossi ({})", name)) - ); + eprintln!("angelsharkcli: ossi ({}): {}", name, e); } } } |