quentinsf/icsv2ledger — pull request #5 by eentzel (2012-09-12 11:51:55+00:00)
Title: Nicer error message when mapping files contain invalid regexes

If I have a mapping file entry that contains an invalid regex such as:

"/*.BLACK CAB VIC.*/","Expenses:Transport:Taxi"

(note the transposition of '.' and '*'), icsv2ledger currently prints a stack trace that isn't very helpful in tracking down the error. This patch adds reporting around the filename and exact regex that caused the error.