Report parsing errors to the consumer.

Fixes #269.