(ledger-auto-reconcile): If auto-reconciling fails, report an error in
the minibuffer.
This commit is contained in:
parent
c0285de46b
commit
06c0e4707a
1 changed files with 3 additions and 1 deletions
|
|
@ -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)))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue