fix extra newline in balance error msg
This commit is contained in:
parent
41b60bbcfc
commit
a6b7ef597f
@ -139,7 +139,7 @@ balanceTransaction t@Transaction{tpostings=ps}
|
||||
balance p | isReal p && not (hasAmount p) = p{pamount = costOfMixedAmount (-otherstotal)}
|
||||
| otherwise = p
|
||||
where otherstotal = sum $ map pamount withamounts
|
||||
printerr s = unlines [s, showTransactionUnelided t]
|
||||
printerr s = intercalate "\n" [s, showTransactionUnelided t]
|
||||
|
||||
nonzerobalanceerror :: Transaction -> String
|
||||
nonzerobalanceerror t = printf "could not balance this transaction (%s%s%s)" rmsg sep bvmsg
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
>>>2
|
||||
"-" (line 4, column 1):
|
||||
unexpected end of input
|
||||
could not balance this transaction (real postings are off by 0.1):
|
||||
could not balance this transaction (real postings are off by 0.1)
|
||||
2009/01/01 a
|
||||
b 1.1
|
||||
c -1
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
>>>2
|
||||
"-" (line 4, column 1):
|
||||
unexpected end of input
|
||||
could not balance this transaction (real postings are off by -1):
|
||||
could not balance this transaction (real postings are off by -1)
|
||||
2009/01/01 broken entry
|
||||
дебит 1
|
||||
кредит -2
|
||||
|
||||
Loading…
Reference in New Issue
Block a user