summaryrefslogtreecommitdiffstats
path: root/src/commands/build.rs
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@atos.net>2021-01-04 15:09:30 +0100
committerMatthias Beyer <matthias.beyer@atos.net>2021-01-04 15:09:30 +0100
commit9c3f70eb47dc5bfac3f295479f2169ed96b88dac (patch)
tree294ffaab911e5b782966328dfda3f9d488f10b35 /src/commands/build.rs
parent0dc4a0c63503588e0531222c439d5cf3cfa74698 (diff)
Add an prefix when logging error messages
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
Diffstat (limited to 'src/commands/build.rs')
-rw-r--r--src/commands/build.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/build.rs b/src/commands/build.rs
index 7e832b5..fd64d3d 100644
--- a/src/commands/build.rs
+++ b/src/commands/build.rs
@@ -305,7 +305,7 @@ pub async fn build(repo_root: &Path,
for (job_uuid, error) in errors {
had_error = true;
for cause in error.chain() {
- writeln!(outlock, "{}", cause)?;
+ writeln!(outlock, "{}: {}", "[ERROR]".red(), cause)?;
}
let data = schema::jobs::table