Escalate the failure of protoc execution

pull/17734/head
Lidi Zheng 6 years ago
parent 6173fe1fcb
commit 0579dcaed6
  1. 2
      tools/distrib/python/grpcio_tools/grpc_tools/command.py

@ -42,7 +42,7 @@ def build_package_protos(package_root):
'--grpc_python_out={}'.format(inclusion_root),
] + [proto_file]
if protoc.main(command) != 0:
sys.stderr.write('warning: {} failed'.format(command))
raise RuntimeError('error: {} failed'.format(command))
class BuildPackageProtos(setuptools.Command):

Loading…
Cancel
Save