mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Reject import URLs for now
This commit is contained in:
parent
df7e703925
commit
77d5148f0d
@ -143,7 +143,12 @@ Json::Value StandardCompiler::compileInternal(Json::Value const& _input)
|
||||
return formatFatalError("JSONError", "No input sources specified.");
|
||||
|
||||
for (auto const& sourceName: sources.getMemberNames())
|
||||
m_compilerStack.addSource(sourceName, sources[sourceName]["content"].asString());
|
||||
if (sources[sourceName]["content"].isString())
|
||||
m_compilerStack.addSource(sourceName, sources[sourceName]["content"].asString());
|
||||
else if (sources[sourceName]["urls"].isArray())
|
||||
return formatFatalError("UnimplementedFeatureError", "Input URLs not supported yet.");
|
||||
else
|
||||
return formatFatalError("JSONError", "Invalid input source specified.");
|
||||
|
||||
Json::Value const& settings = _input.get("settings", Json::Value());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user