diff options
Diffstat (limited to 'libsolidity/interface/StandardCompiler.cpp')
-rw-r--r-- | libsolidity/interface/StandardCompiler.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libsolidity/interface/StandardCompiler.cpp b/libsolidity/interface/StandardCompiler.cpp index d78a9487..7fb715bf 100644 --- a/libsolidity/interface/StandardCompiler.cpp +++ b/libsolidity/interface/StandardCompiler.cpp @@ -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()); |