diff options
author | Matthias Beyer <matthias.beyer@atos.net> | 2021-06-08 15:38:25 +0200 |
---|---|---|
committer | Matthias Beyer <matthias.beyer@atos.net> | 2021-06-09 14:33:12 +0200 |
commit | d97369ed5ff02b6806b9042bb37ebe60dc14da8d (patch) | |
tree | 45329948976bf7504319b99f4b71ba199ca5f9ec /src/ui.rs | |
parent | 98d61313b54563a18406e1c9369ac910437eca96 (diff) |
Add error context
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
Diffstat (limited to 'src/ui.rs')
-rw-r--r-- | src/ui.rs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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, |