Improve solc error output (#765)

* Improve err handling when there's a solc error, print the error

* Fix bug, don't merge stdout/err

* Simplify

* Add more space
This commit is contained in:
Mark Mossberg
2018-02-23 08:13:55 -08:00
committed by GitHub
parent d0f69c755c
commit 3f1c51fa91

View File

@@ -582,7 +582,7 @@ class ManticoreEVM(Manticore):
try:
output = json.loads(p.stdout.read())
except ValueError:
raise Exception('Solidity compilation error')
raise Exception('Solidity compilation error:\n\n{}'.format(p.stderr.read()))
contracts = output.get('contracts', [])
if len(contracts) != 1 and contract_name is None: