mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #4570 from ethereum/cleanup-catch-statements
More consistent catch statements
This commit is contained in:
commit
ff8e930054
@ -115,7 +115,7 @@ pair<CheckResult, vector<string>> CVC4Interface::check(vector<Expression> const&
|
||||
values.push_back(toString(m_solver.getValue(toCVC4Expr(e))));
|
||||
}
|
||||
}
|
||||
catch (CVC4::Exception & e)
|
||||
catch (CVC4::Exception const&)
|
||||
{
|
||||
result = CheckResult::ERROR;
|
||||
values.clear();
|
||||
|
@ -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.\"}]}";
|
||||
}
|
||||
|
@ -119,7 +119,7 @@ TestTool::Result TestTool::process()
|
||||
"Exception during syntax test: " << _e.what() << endl;
|
||||
return Result::Exception;
|
||||
}
|
||||
catch(...)
|
||||
catch (...)
|
||||
{
|
||||
FormattedScope(cout, m_formatted, {BOLD, RED}) <<
|
||||
"Unknown exception during syntax test." << endl;
|
||||
|
Loading…
Reference in New Issue
Block a user