summaryrefslogtreecommitdiffstats
path: root/src/ui.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.rs')
-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,