From: dgellow Date: Wed, 25 Jan 2017 17:25:41 +0000 (+0100) Subject: When an error occured in a JobQueue print it directly X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~11^2~13^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e174ae3bdfc1884c904da633fbb4bca706aa583e;p=cargo.git When an error occured in a JobQueue print it directly --- diff --git a/src/cargo/ops/cargo_rustc/job_queue.rs b/src/cargo/ops/cargo_rustc/job_queue.rs index e40c82922..a72b6e1f9 100644 --- a/src/cargo/ops/cargo_rustc/job_queue.rs +++ b/src/cargo/ops/cargo_rustc/job_queue.rs @@ -9,7 +9,7 @@ use term::color::YELLOW; use core::{PackageId, Target, Profile}; use util::{Config, DependencyQueue, Fresh, Dirty, Freshness}; -use util::{CargoResult, ProcessBuilder, profile, internal}; +use util::{CargoResult, ProcessBuilder, profile, internal, human}; use super::{Context, Kind, Unit}; use super::job::Job; @@ -181,13 +181,14 @@ impl<'a> JobQueue<'a> { match result { Ok(()) => self.finish(key, cx)?, Err(e) => { + cx.config.shell().error(format!("{}", e))?; if self.active > 0 { cx.config.shell().say( "Build failed, waiting for other \ jobs to finish...", YELLOW)?; } if error.is_none() { - error = Some(e); + error = Some(human("build failed")); } } }