Skip to content

Commit

Permalink
Print error on build failed
Browse files Browse the repository at this point in the history
  • Loading branch information
fmder authored Jun 16, 2019
1 parent 11fedd5 commit b668c9c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,15 @@ class ve_build_ext(build_ext):
def run(self):
try:
build_ext.run(self)
except DistutilsPlatformError:
except DistutilsPlatformError as e:
print(e)
raise BuildFailed()

def build_extension(self, ext):
try:
build_ext.build_extension(self, ext)
except ext_errors:
except ext_errors as e:
print(e)
raise BuildFailed()

def run_setup(build_ext):
Expand Down

0 comments on commit b668c9c

Please sign in to comment.