diff options
author | chriseth <chris@ethereum.org> | 2018-09-24 21:01:38 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-24 21:01:38 +0800 |
commit | 64a6888aba892bf811723ba0ec312b25e34465e6 (patch) | |
tree | f47d56b25b8c5bde353b29a170f4bbd99279edc7 /libsolidity/interface | |
parent | cb3a837251087001c738cb8f123db231bb00a31d (diff) | |
parent | abfd283af75ea6655733fca8394294120856aeec (diff) | |
download | dexon-solidity-64a6888aba892bf811723ba0ec312b25e34465e6.tar.gz dexon-solidity-64a6888aba892bf811723ba0ec312b25e34465e6.tar.zst dexon-solidity-64a6888aba892bf811723ba0ec312b25e34465e6.zip |
Merge pull request #5063 from ethereum/standard-json-bug
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 b53c5a5e..e7b1553f 100644 --- a/libsolidity/interface/StandardCompiler.cpp +++ b/libsolidity/interface/StandardCompiler.cpp @@ -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.\"}]}"; } } |