Pass undiagnosed errors to the user unadulterated

pull/4976/head
Masood Malekghassemi 9 years ago
parent 097070fe20
commit 5080909b4c
  1. 8
      src/python/grpcio/commands.py

@ -320,11 +320,11 @@ class BuildExt(build_ext.build_ext):
extension.extra_link_args += list(BuildExt.LINK_OPTIONS[compiler]) extension.extra_link_args += list(BuildExt.LINK_OPTIONS[compiler])
try: try:
build_ext.build_ext.build_extensions(self) build_ext.build_ext.build_extensions(self)
except KeyboardInterrupt:
raise
except Exception as error: except Exception as error:
support.diagnose_build_ext_error(self, error, traceback.format_exc()) formatted_exception = traceback.format_exc()
raise CommandError("Failed `build_ext` step.") support.diagnose_build_ext_error(self, error, formatted_exception)
raise CommandError(
"Failed `build_ext` step:\n{}".format(formatted_exception))
class Gather(setuptools.Command): class Gather(setuptools.Command):

Loading…
Cancel
Save