mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Do not catch exceptions by value in StandardCompiler
This commit is contained in:
parent
4690f837e0
commit
9e26f5fa0a
@ -117,7 +117,7 @@ bool hashMatchesContent(string const& _hash, string const& _content)
|
|||||||
{
|
{
|
||||||
return dev::h256(_hash) == dev::keccak256(_content);
|
return dev::h256(_hash) == dev::keccak256(_content);
|
||||||
}
|
}
|
||||||
catch (dev::BadHexCharacter)
|
catch (dev::BadHexCharacter const&)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -366,7 +366,7 @@ Json::Value StandardCompiler::compileInternal(Json::Value const& _input)
|
|||||||
// @TODO use libraries only for the given source
|
// @TODO use libraries only for the given source
|
||||||
libraries[library] = h160(address);
|
libraries[library] = h160(address);
|
||||||
}
|
}
|
||||||
catch (dev::BadHexCharacter)
|
catch (dev::BadHexCharacter const&)
|
||||||
{
|
{
|
||||||
return formatFatalError(
|
return formatFatalError(
|
||||||
"JSONError",
|
"JSONError",
|
||||||
|
Loading…
Reference in New Issue
Block a user