summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@atos.net>2021-06-08 15:38:25 +0200
committerMatthias Beyer <matthias.beyer@atos.net>2021-06-09 14:33:12 +0200
commitd97369ed5ff02b6806b9042bb37ebe60dc14da8d (patch)
tree45329948976bf7504319b99f4b71ba199ca5f9ec
parent98d61313b54563a18406e1c9369ac910437eca96 (diff)
Add error context
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
-rw-r--r--src/ui.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui.rs b/src/ui.rs
index fda8f5b..0d08cd6 100644
--- a/src/ui.rs
+++ b/src/ui.rs
@@ -16,6 +16,7 @@ use std::path::Path;
use std::path::PathBuf;
use anyhow::anyhow;
+use anyhow::Context;
use anyhow::Error;
use anyhow::Result;
use handlebars::Handlebars;
@@ -114,7 +115,7 @@ fn print_package(
package,
config.available_phases(),
*config.strict_script_interpolation(),
- )?;
+ ).context("Rendering script for printing it failed")?;
let script = crate::ui::script_to_printable(
&script,