aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/interface/StandardCompiler.cpp
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-09-22 05:43:57 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-09-22 05:43:57 +0800
commitabfd283af75ea6655733fca8394294120856aeec (patch)
treefcfe893381d1203c48e6ccaf11eb4c3399d03ec0 /libsolidity/interface/StandardCompiler.cpp
parent8f96fe698df64b5f35b7177621d4861b85167957 (diff)
downloaddexon-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/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 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.\"}]}";
}
}