summaryrefslogtreecommitdiffstats
path: root/src/commands/build.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-12-09 12:59:21 +0100
committerMatthias Beyer <mail@beyermatthias.de>2020-12-09 14:52:09 +0100
commit92364867ff01c66ccb4bd7de6634ed721af5ab09 (patch)
tree13aa5dc05bfdc8af4657e64eeeeb2890cd5066d0 /src/commands/build.rs
parent757638df78813c5f8c5872b2818221a7ed689f4b (diff)
Fix command implementation for source verification to log errors properly
This patch fixes the verify_impl() to log the errors properly. Before this patch, the first error was reported (which we did not mean to implement this way, so it was a bug). Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/commands/build.rs')
-rw-r--r--src/commands/build.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/commands/build.rs b/src/commands/build.rs
index 182653c..c0c2f59 100644
--- a/src/commands/build.rs
+++ b/src/commands/build.rs
@@ -179,8 +179,7 @@ pub async fn build(matches: &ArgMatches,
if matches.is_present("no_verification") {
warn!("No hash verification will be performed");
} else {
- let mut out = std::io::stdout();
- crate::commands::source::verify_impl(tree.all_packages().into_iter(), &source_cache, &mut out)
+ crate::commands::source::verify_impl(tree.all_packages().into_iter(), &source_cache)
.await?;
}