Skip to content

Commit

Permalink
Pass undiagnosed errors to the user unadulterated
Browse files Browse the repository at this point in the history
  • Loading branch information
soltanmm committed Jan 30, 2016
1 parent 097070f commit 5080909
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/python/grpcio/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,11 +320,11 @@ def build_extensions(self):
extension.extra_link_args += list(BuildExt.LINK_OPTIONS[compiler])
try:
build_ext.build_ext.build_extensions(self)
except KeyboardInterrupt:
raise
except Exception as error:
support.diagnose_build_ext_error(self, error, traceback.format_exc())
raise CommandError("Failed `build_ext` step.")
formatted_exception = traceback.format_exc()
support.diagnose_build_ext_error(self, error, formatted_exception)
raise CommandError(
"Failed `build_ext` step:\n{}".format(formatted_exception))


class Gather(setuptools.Command):
Expand Down

0 comments on commit 5080909

Please sign in to comment.