[yul-phaser] Move handling of boost::program_options::error to the top-level exception handler

This commit is contained in:
Kamil Śliwak
2020-03-16 20:32:59 +01:00
parent 4e90c598b3
commit 53803801f7
2 changed files with 11 additions and 11 deletions
+8
View File
@@ -28,6 +28,14 @@ int main(int argc, char** argv)
{
return solidity::phaser::Phaser::main(argc, argv);
}
catch (boost::program_options::error const& exception)
{
// Bad input data. Invalid command-line parameters.
std::cerr << std::endl;
std::cerr << "ERROR: " << exception.what() << std::endl;
return 1;
}
catch (solidity::phaser::InvalidProgram const& exception)
{
// Error in the input data. One of the provided programs contains errors and could not be loaded.