mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fail if no sources are given
This commit is contained in:
parent
5aec120da3
commit
2c15e2b541
@ -61,10 +61,7 @@ Json::Value StandardCompiler::compileInternal(Json::Value const& _input)
|
||||
|
||||
Json::Value const& sources = _input["sources"];
|
||||
if (!sources)
|
||||
{
|
||||
// @TODO report error
|
||||
return Json::Value();
|
||||
}
|
||||
return formatFatalError("JSONError", "No input sources specified.");
|
||||
|
||||
for (auto const& sourceName: sources.getMemberNames())
|
||||
m_compilerStack.addSource(sourceName, sources[sourceName]["content"].asString());
|
||||
|
Loading…
Reference in New Issue
Block a user