Fixed bug in FormatGenerator to process exceptions
Merge pull request #325 from sburnicki/write_parse_error

Fixed bug in FormatGenerator to process exceptions