From 06c0e4707a49db778f49d109dab194472bfe73be Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 16 Feb 2005 05:52:58 +0000 Subject: (ledger-auto-reconcile): If auto-reconciling fails, report an error in the minibuffer. --- ledger.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ledger.el b/ledger.el index c2e3445d..54f21b3b 100644 --- a/ledger.el +++ b/ledger.el @@ -255,7 +255,9 @@ Return the difference in the format of a time value." (replace-match "\\\\\\1")) (buffer-string)) "--reconcile-date" date "register" account))) - (when (= 0 exit-code) + (if (/= 0 exit-code) + (error "Failed to reconcile account '%s' to balance '%s'" + account balance) (goto-char (point-min)) (unless (looking-at "[0-9]") (error (buffer-string))) -- cgit v1.2.3