differentiator: parser: improve error handling.