print SystemExit exception messages instead of using the current build failure text

Signed-off-by: Justin Ramos <justin.ramos@gmail.com>
This commit is contained in:
Justin Ramos 2017-03-22 20:47:48 +00:00
parent 46c9ea9403
commit e97df3ad4d
No known key found for this signature in database
GPG Key ID: 4A33DDE9CB944DC3

View File

@ -256,7 +256,9 @@ if __name__ == "__main__":
}, },
scripts=['src/pybitmessage'] scripts=['src/pybitmessage']
) )
except SystemExit: except SystemExit as err:
print err.message
except:
print "It looks like building the package failed.\n" \ print "It looks like building the package failed.\n" \
"You may be missing a C++ compiler and the OpenSSL headers." "You may be missing a C++ compiler and the OpenSSL headers."
compilerToPackages() compilerToPackages()