clarify balance assertion error slightly
This commit is contained in:
		
							parent
							
								
									f0167013ce
								
							
						
					
					
						commit
						01e5a2245d
					
				| @ -435,10 +435,10 @@ checkBalanceAssertion (errs,bal) ps | |||||||
|     assertion = pbalanceassertion p |     assertion = pbalanceassertion p | ||||||
|     Just assertedbal = assertion |     Just assertedbal = assertion | ||||||
|     bal' = sum $ [bal] ++ map pamount ps |     bal' = sum $ [bal] ++ map pamount ps | ||||||
|     err = printf "Balance assertion failed for account %s on %s\n%safter\n   %s\nexpected balance is %s, actual balance was %s." |     err = printf "Balance assertion failed for account %s on %s\n%sAfter posting:\n   %s\nexpected balance is %s, actual balance was %s." | ||||||
|                  (paccount p) |                  (paccount p) | ||||||
|                  (show $ postingDate p) |                  (show $ postingDate p) | ||||||
|                  (maybe "" (("In\n"++).show) $ ptransaction p) |                  (maybe "" (("In transaction:\n"++).show) $ ptransaction p) | ||||||
|                  (show p) |                  (show p) | ||||||
|                  (showMixedAmount assertedbal) |                  (showMixedAmount assertedbal) | ||||||
|                  (showMixedAmount bal') |                  (showMixedAmount bal') | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user