Better error handling for parsers.