mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix typo in parsing/writing JSON error in StandardCompiler
This commit is contained in:
parent
8f96fe698d
commit
abfd283af7
@ -607,7 +607,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;
|
||||
@ -620,6 +620,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.\"}]}";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user