From 3f1c51fa913adfa0c6bece264fa2d2fdd39ea1f5 Mon Sep 17 00:00:00 2001 From: Mark Mossberg Date: Fri, 23 Feb 2018 08:13:55 -0800 Subject: [PATCH] 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 --- manticore/ethereum.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manticore/ethereum.py b/manticore/ethereum.py index d657019..283e39f 100644 --- a/manticore/ethereum.py +++ b/manticore/ethereum.py @@ -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: