Adds error handling to proto syntax parsers.