diff options
author | Matthias Beyer <matthias.beyer@atos.net> | 2021-06-09 14:33:39 +0200 |
---|---|---|
committer | Matthias Beyer <matthias.beyer@atos.net> | 2021-06-09 14:33:43 +0200 |
commit | 6798e208d134f11c753489cacbdb5661d5333207 (patch) | |
tree | 8c2bedc6729fb822f34769b90c57952de4d97500 /src/package/script.rs | |
parent | bdd4776e95a84199221527685bc8a4124d5d73d2 (diff) | |
parent | 7ebc7d978a31c14a8f90db8540c8c43829e899ba (diff) |
Merge branch 'error-output'
Diffstat (limited to 'src/package/script.rs')
-rw-r--r-- | src/package/script.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/package/script.rs b/src/package/script.rs index 9935ee2..30b198f 100644 --- a/src/package/script.rs +++ b/src/package/script.rs @@ -232,7 +232,9 @@ impl<'a> ScriptBuilder<'a> { hb.register_helper("join", Box::new(JoinHelper)); hb.register_helper("joinwith", Box::new(JoinWithHelper)); hb.set_strict_mode(strict_mode); - hb.render("script", package).map_err(Error::from) + hb.render("script", package) + .with_context(|| anyhow!("Rendering script for package {} {} failed", package.name(), package.version())) + .map_err(Error::from) } } |