Merge pull request #5063 from ethereum/standard-json-bug

Fix typo in parsing/writing JSON error in StandardCompiler
This commit is contained in:
chriseth
2018-09-24 15:01:38 +02:00
committed by GitHub
+2 -2
View File
@@ -615,7 +615,7 @@ string StandardCompiler::compile(string const& _input) noexcept
}
catch (...)
{
return "{\"errors\":\"[{\"type\":\"JSONError\",\"component\":\"general\",\"severity\":\"error\",\"message\":\"Error parsing input JSON.\"}]}";
return "{\"errors\":[{\"type\":\"JSONError\",\"component\":\"general\",\"severity\":\"error\",\"message\":\"Error parsing input JSON.\"}]}";
}
// cout << "Input: " << input.toStyledString() << endl;
@@ -628,6 +628,6 @@ string StandardCompiler::compile(string const& _input) noexcept
}
catch (...)
{
return "{\"errors\":\"[{\"type\":\"JSONError\",\"component\":\"general\",\"severity\":\"error\",\"message\":\"Error writing output JSON.\"}]}";
return "{\"errors\":[{\"type\":\"JSONError\",\"component\":\"general\",\"severity\":\"error\",\"message\":\"Error writing output JSON.\"}]}";
}
}