aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--piem-lei.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/piem-lei.el b/piem-lei.el
index 5f38117..f3b16b6 100644
--- a/piem-lei.el
+++ b/piem-lei.el
@@ -43,8 +43,10 @@
(defun piem-lei-insert-output (args &optional buffer)
"Call lei with ARGS and insert standard output in BUFFER.
If BUFFER is nil, the current buffer is used."
- (apply #'call-process piem-lei-lei-executable nil
- (list (or buffer t) nil) nil args))
+ (unless (= 0 (apply #'call-process piem-lei-lei-executable nil
+ (list (or buffer t) nil) nil args))
+ ;; TODO: Add debugging option for capturing stderr.
+ (error "Calling %s with %S failed" piem-lei-lei-executable args)))
;;;; Message display