[yul-phaser] Create BadInput exception hierarchy and make exceptions used by Phaser more specific

This commit is contained in:
Kamil Śliwak
2020-03-16 20:32:59 +01:00
parent 53803801f7
commit f05a07d0cc
3 changed files with 9 additions and 9 deletions
+3 -3
View File
@@ -36,10 +36,10 @@ int main(int argc, char** argv)
std::cerr << "ERROR: " << exception.what() << std::endl;
return 1;
}
catch (solidity::phaser::InvalidProgram const& exception)
catch (solidity::phaser::BadInput const& exception)
{
// Error in the input data. One of the provided programs contains errors and could not be loaded.
// Handle it and exit.
// Bad input data. Syntax errors in the input program, semantic errors in command-line
// parameters, etc.
std::cerr << std::endl;
std::cerr << "ERROR: " << exception.what() << std::endl;