1
0
mirror of https://github.com/jht5945/buildj.git synced 2025-12-27 17:20:06 +08:00

update verbose outputs

This commit is contained in:
2019-08-20 01:14:51 +08:00
parent d113263325
commit 86b87174ba

View File

@@ -337,10 +337,11 @@ fn main() {
cmd.arg(f_arg);
}
if *VERBOSE {
print_message(MessageType::DEBUG, "-----Environment variables-----");
print_message(MessageType::DEBUG, "-----BEGIN ENVIRONMENT VARIABLES-----");
for (k, v) in new_env {
print_message(MessageType::DEBUG, &format!("{}={}", k, v));
}
print_message(MessageType::DEBUG, "-----END ENVIRONMENT VARIABLES-----");
}
run_command_and_wait(&mut cmd).unwrap_or_else(|err| {
print_message(MessageType::ERROR, &format!("Run build command failed: {}", err));