New issue 250: improve error message for costs without an amount
https://bitbucket.org/blais/beancount/issues/250/improve-error-message-for-costs-without-an

Martin Michlmayr:

With:

```
2017-01-01 open Assets:Rewards
2017-01-01 open Equity:Opening-balance

2017-01-01 * "Marriott certificate"
  Assets:Rewards                 1 MARRIOTT4 {"expiration: 2017-08-17"}
  Equity:Opening-balance
```

I get:

```
...:7:       Failed to categorize posting 0
```

This error message could be improved to say the cost is missing the amount.

BTW, should a cost without an amount be allowed? I guess not, but I could use 
the built-in mechanism to ensure I remove the correct "lot" (in ledger terms).  
But I guess I can put the info in a metadata variable and write a plugin to 
ensure the same.  Just seems like a duplication of error.  (Maybe there's an 
elegant way to do this already?)


-- 
You received this message because you are subscribed to the Google Groups 
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/20180321123418.34844.67869%40celery-worker-105.ash1.bb-inf.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to