summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-12-11 09:34:34 +0200
committerLars Wirzenius <liw@liw.fi>2021-12-11 10:54:45 +0200
commit1605867b8e6b37160e527c9439322fc40ac6cce9 (patch)
tree81946c1e4dec8871a1fbbd6a991959ad2288b5be
parentc64ed7b006943365acdf78feb86ebcff63749fda (diff)
downloadpandoc-filter-diagram-1605867b8e6b37160e527c9439322fc40ac6cce9.tar.gz
fix: include stderr in error message when helper fails
Previously, the exit status code was shown, not stderr. Sponsored-by: author
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 40ae760..c7c3bc5 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -61,7 +61,7 @@ pub enum DiagramError {
///
/// This probably implies there's something wrong in the filter.
/// Please report this error.
- #[error("helper program failed: {0} (as {1}): {2}")]
+ #[error("helper program failed: {0} (as {1}), exit status {2}:\n{3}")]
HelperFailed(String, PathBuf, String, String),
/// I/O error