[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ob-ledger errors quietly
From: |
ob-ledger |
Subject: |
ob-ledger errors quietly |
Date: |
Fri, 20 Mar 2020 07:46:32 -0700 |
User-agent: |
Cyrus-JMAP/3.1.7-1021-g152deaf-fmstable-20200319v1 |
Hello all,
With the following,
(org-babel-do-load-languages
'org-babel-load-languages
'((ledger . t)))
And
#+BEGIN_SRC ledger
1970-01-01 example
A 1
B
#+END_SRC
Upon typing C-c C-c, I see no errors in echo area, but there is an error hiding
in *Messages* buffer, I've included it at the end of this message.
I think more ideal would be if at least there was something in the echo area
about the error. I began assuming otherwise, such as maybe ob-ledger was not
really a working thing.
I checked the following in a terminal, and the exit code was 1, via "echo $?".
"printf '1970-01-01 example\n A 1\n B' | ledger -f - bal"
Regards,
-Brady
Evaluate this ledger code block on your system? (y or n) y
executing Ledger code block...
executing Ledger source code block
ledger -f
/var/folders/z1/48qx4zkd7fzd7phhvlvl01w00000gn/T/babel-iM3fuM/ledger-CQlmp0 bal
While parsing file
"/var/folders/z1/48qx4zkd7fzd7phhvlvl01w00000gn/T/babel-iM3fuM/ledger-CQlmp0",
line 3:
While balancing transaction from
"/var/folders/z1/48qx4zkd7fzd7phhvlvl01w00000gn/T/babel-iM3fuM/ledger-CQlmp0",
lines 1-3:
> 1970-01-01 example
> A 1
> B
Unbalanced remainder is:
1
Amount to balance against:
1
Error: Transaction does not balance
Code block evaluation complete.
- ob-ledger errors quietly,
ob-ledger <=