diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-09-22 05:43:57 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-09-22 05:43:57 +0800 |
commit | abfd283af75ea6655733fca8394294120856aeec (patch) | |
tree | fcfe893381d1203c48e6ccaf11eb4c3399d03ec0 /libsolidity/interface | |
parent | 8f96fe698df64b5f35b7177621d4861b85167957 (diff) | |
download | dexon-solidity-abfd283af75ea6655733fca8394294120856aeec.tar.gz dexon-solidity-abfd283af75ea6655733fca8394294120856aeec.tar.zst dexon-solidity-abfd283af75ea6655733fca8394294120856aeec.zip |
Fix typo in parsing/writing JSON error in StandardCompiler
Diffstat (limited to 'libsolidity/interface')
-rw-r--r-- | libsolidity/interface/StandardCompiler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/interface/StandardCompiler.cpp b/libsolidity/interface/StandardCompiler.cpp index c1996777..9649b027 100644 --- a/libsolidity/interface/StandardCompiler.cpp +++ b/libsolidity/interface/StandardCompiler.cpp @@ -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.\"}]}"; } } |