diff options
author | chriseth <c@ethdev.com> | 2015-08-20 07:09:39 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-08-20 08:12:37 +0800 |
commit | 0906042ce05f01c4d371aa98d0fd9dddfb93a196 (patch) | |
tree | 34409ae15092fefce7f8129d49f593f596578cbd /solc/main.cpp | |
parent | 4c8b2202575b8c169b6dda9f81a0c6f171361df9 (diff) | |
download | dexon-solidity-0906042ce05f01c4d371aa98d0fd9dddfb93a196.tar.gz dexon-solidity-0906042ce05f01c4d371aa98d0fd9dddfb93a196.tar.zst dexon-solidity-0906042ce05f01c4d371aa98d0fd9dddfb93a196.zip |
More information for help screen, some fixes for argument parsing.
Diffstat (limited to 'solc/main.cpp')
-rw-r--r-- | solc/main.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/solc/main.cpp b/solc/main.cpp index c5f72980..eaada1c4 100644 --- a/solc/main.cpp +++ b/solc/main.cpp @@ -21,6 +21,10 @@ */ #include "CommandLineInterface.h" +#include <iostream> +#include <boost/exception/all.hpp> + +using namespace std; int main(int argc, char** argv) { @@ -29,7 +33,15 @@ int main(int argc, char** argv) return 1; if (!cli.processInput()) return 1; - cli.actOnInput(); + try + { + cli.actOnInput(); + } + catch (boost::exception const& _exception) + { + cerr << "Exception during output generation: " << boost::diagnostic_information(_exception) << endl; + return 1; + } return 0; } |