aboutsummaryrefslogtreecommitdiffstats
path: root/solc/main.cpp
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-08-20 07:09:39 +0800
committerchriseth <c@ethdev.com>2015-08-20 08:12:37 +0800
commit0906042ce05f01c4d371aa98d0fd9dddfb93a196 (patch)
tree34409ae15092fefce7f8129d49f593f596578cbd /solc/main.cpp
parent4c8b2202575b8c169b6dda9f81a0c6f171361df9 (diff)
downloaddexon-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.cpp14
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;
}