diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-04-24 18:44:33 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-04-24 18:44:33 +0800 |
commit | 43eb8398711f7fafd703cff06092f3dfd2b0e748 (patch) | |
tree | df78d8b9a0bc9c7e9276efd3bd9e2119648f1057 /libsolidity | |
parent | 3cd02ca1481131773e8bde952c6d7f76dec4ed3a (diff) | |
download | dexon-solidity-43eb8398711f7fafd703cff06092f3dfd2b0e748.tar dexon-solidity-43eb8398711f7fafd703cff06092f3dfd2b0e748.tar.gz dexon-solidity-43eb8398711f7fafd703cff06092f3dfd2b0e748.tar.bz2 dexon-solidity-43eb8398711f7fafd703cff06092f3dfd2b0e748.tar.lz dexon-solidity-43eb8398711f7fafd703cff06092f3dfd2b0e748.tar.xz dexon-solidity-43eb8398711f7fafd703cff06092f3dfd2b0e748.tar.zst dexon-solidity-43eb8398711f7fafd703cff06092f3dfd2b0e748.zip |
Do not fail if parsing failed in StandardCompiler
Diffstat (limited to 'libsolidity')
-rw-r--r-- | libsolidity/interface/StandardCompiler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/interface/StandardCompiler.cpp b/libsolidity/interface/StandardCompiler.cpp index 5408db2e..6a8417de 100644 --- a/libsolidity/interface/StandardCompiler.cpp +++ b/libsolidity/interface/StandardCompiler.cpp @@ -337,7 +337,7 @@ Json::Value StandardCompiler::compileInternal(Json::Value const& _input) } Json::Value contractsOutput = Json::objectValue; - for (string const& contractName: m_compilerStack.contractNames()) + for (string const& contractName: success ? m_compilerStack.contractNames() : vector<string>()) { size_t colon = contractName.find(':'); solAssert(colon != string::npos, ""); |