Improved error message passing from reader to scanner to parser.