aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/interface/StandardCompiler.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-09-24 21:01:38 +0800
committerGitHub <noreply@github.com>2018-09-24 21:01:38 +0800
commit64a6888aba892bf811723ba0ec312b25e34465e6 (patch)
treef47d56b25b8c5bde353b29a170f4bbd99279edc7 /libsolidity/interface/StandardCompiler.cpp
parentcb3a837251087001c738cb8f123db231bb00a31d (diff)
parentabfd283af75ea6655733fca8394294120856aeec (diff)
downloaddexon-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/StandardCompiler.cpp')
-rw-r--r--libsolidity/interface/StandardCompiler.cpp4
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.\"}]}";
}
}