diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-05-17 20:57:21 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-07-25 08:18:09 +0800 |
commit | a5a61a0b7762bf5acdd01a4e6943d927b08f92ab (patch) | |
tree | 391e246bac959c9a74ce1c1b7f03042f9bbe41c2 /libsolidity/interface | |
parent | ae0959ae125ac2ae7084041a87c0736a8e7df6c6 (diff) | |
download | dexon-solidity-a5a61a0b7762bf5acdd01a4e6943d927b08f92ab.tar dexon-solidity-a5a61a0b7762bf5acdd01a4e6943d927b08f92ab.tar.gz dexon-solidity-a5a61a0b7762bf5acdd01a4e6943d927b08f92ab.tar.bz2 dexon-solidity-a5a61a0b7762bf5acdd01a4e6943d927b08f92ab.tar.lz dexon-solidity-a5a61a0b7762bf5acdd01a4e6943d927b08f92ab.tar.xz dexon-solidity-a5a61a0b7762bf5acdd01a4e6943d927b08f92ab.tar.zst dexon-solidity-a5a61a0b7762bf5acdd01a4e6943d927b08f92ab.zip |
More consistent catch statements
Also take const& in all cases.
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 c8d43e9f..8339780f 100644 --- a/libsolidity/interface/StandardCompiler.cpp +++ b/libsolidity/interface/StandardCompiler.cpp @@ -600,7 +600,7 @@ string StandardCompiler::compile(string const& _input) if (!jsonParseStrict(_input, input, &errors)) return jsonCompactPrint(formatFatalError("JSONError", errors)); } - catch(...) + catch (...) { return "{\"errors\":\"[{\"type\":\"JSONError\",\"component\":\"general\",\"severity\":\"error\",\"message\":\"Error parsing input JSON.\"}]}"; } @@ -613,7 +613,7 @@ string StandardCompiler::compile(string const& _input) { return jsonCompactPrint(output); } - catch(...) + catch (...) { return "{\"errors\":\"[{\"type\":\"JSONError\",\"component\":\"general\",\"severity\":\"error\",\"message\":\"Error writing output JSON.\"}]}"; } |