From 2a15075a864c12184084043c48e7fe3593be2dff Mon Sep 17 00:00:00 2001 From: Bernhard Mueller Date: Tue, 27 Feb 2018 20:59:45 +0700 Subject: [PATCH] Output error details on compiler error --- mythril/ether/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mythril/ether/util.py b/mythril/ether/util.py index 91b89146..1548ed83 100644 --- a/mythril/ether/util.py +++ b/mythril/ether/util.py @@ -25,7 +25,7 @@ def get_solc_json(file, solc_binary="solc"): ret = p.returncode if ret != 0: - raise CompilerError("The Solidity compiler experienced a fatal error (code %d). Please check the Solidity compiler." % ret) + raise CompilerError("Solc experienced a fatal error (code %d).\n\n%s" % (ret, stderr.decode('UTF-8'))) except FileNotFoundError: raise CompilerError("Compiler not found. Make sure that solc is installed and in PATH, or set the SOLC environment variable.")