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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user