commit ebba4b1169baf28b69437a9522321493be4e8de7
parent e09d5261c2356d8b4bb6fa889e89a8313e6738d1
Author: Stefan Koch <programming@stefan-koch.name>
Date: Fri, 29 Nov 2019 18:58:43 +0100
print errors from build commands to stderr
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/lib.rs b/src/lib.rs
@@ -99,6 +99,8 @@ pub fn run(exec_config: &ExecutionConfig) {
match res {
ExecutionResult::BuildError(msg, output, code) => {
+ eprintln!("Build failed: {}\n\n{}", msg, output);
+
let code_msg = match code {
Some(code) => format!("Exited with status code: {}", code),
None => format!("Process terminated by signal")
@@ -109,6 +111,8 @@ pub fn run(exec_config: &ExecutionConfig) {
&format!("Build failed: {}\n{}\n\n{}", msg, code_msg, output));
},
ExecutionResult::ExecutionError(msg, output) => {
+ eprintln!("Build failed: {}\n\n{}", msg, output);
+
let mailer = mail::build_mailer(&config.email);
mailer.send_mail(
&exec_config.name(),