diff options
author | Matthias Beyer <matthias.beyer@atos.net> | 2021-02-11 14:05:30 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2021-02-11 18:57:25 +0100 |
commit | 432c0c8723687eed45c94ff46eb411260774f3c2 (patch) | |
tree | cda0ff716dc8870497a3cc632d7d1652f39e8226 /src/commands/find_artifact.rs | |
parent | aedb2cc4c890f3597e3ed47d1ad9480620b76ae8 (diff) |
Fix: Collect results first, then abort on first result
This is required so that the other artifacts are considered and printed.
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
Diffstat (limited to 'src/commands/find_artifact.rs')
-rw-r--r-- | src/commands/find_artifact.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/commands/find_artifact.rs b/src/commands/find_artifact.rs index 4f053f8..bf48130 100644 --- a/src/commands/find_artifact.rs +++ b/src/commands/find_artifact.rs @@ -132,5 +132,7 @@ pub async fn find_artifact(matches: &ArgMatches, config: &Configuration, progres }) }) .inspect(|r| trace!("Query resulted in: {:?}", r)) - .collect::<Result<()>>() + .collect::<Vec<Result<()>>>() + .into_iter() + .collect() } |