summaryrefslogtreecommitdiff
path: root/ledger.el
diff options
context:
space:
mode:
Diffstat (limited to 'ledger.el')
-rw-r--r--ledger.el4
1 files changed, 3 insertions, 1 deletions
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)))