Open witten opened 5 years ago
Adding it as a recoverable error makes sense. For this particular error, you could substitute Expenses:FIXME or just skip the entry altogether. Another way to expose errors is to add them as a metadata field to the transaction/posting. That has the advantage of making the error more obviously associated with a particular transaction.
When I'm trying to import a new OFX account, and I'm in the process of setting all of the necessary Beancount-import OFX metadata in my Beancount accounts file, I'll often get errors like these when I don't yet have the metadata quite right:
So, getting unceremoniously dumped into a pdb shell because I'm missing a
capital_gains_account
entry! This is okay (but not ideal) when running Beancount-import locally in an interactive shell. It's super not great when running Beancount-import persistently on a remote web server with nothing interactive!To be fair, I was warned of this potential issue (https://github.com/jbms/beancount-import/issues/14#issuecomment-497959182):
So I'm opening this ticket to start brainstorming solutions. The existing errors tab in the front-end seems like a nice way to present errors to the user. Would it be possible to just take the cases of errors that (currently) result in a pdb shell or exiting the program to instead manifest as recoverable errors in the UI?