keithrbennett / rock_books

Simple and flexible accounting system, available as a Ruby gem.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error message in chart of accounts parse should include file and line.

keithrbennett opened this issue · comments

A parse error in the chart of accounts yields this error:

-------------------------------------------------------------------------------
undefined method `[]' for nil:NilClass
-------------------------------------------------------------------------------

Instead there should be a more helpful message including the source file and line of the error.

To reproduce, introduce an unsupported document variable into the chart of accounts, e.g. @foo, and then run rock_books w.

Fixed in commits 33bf09a, 9e683d4.