aboutsummaryrefslogtreecommitdiffstats
path: root/solc/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'solc/main.cpp')
-rw-r--r--solc/main.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/solc/main.cpp b/solc/main.cpp
index 28726e26..c61da6e9 100644
--- a/solc/main.cpp
+++ b/solc/main.cpp
@@ -58,15 +58,16 @@ int main(int argc, char** argv)
return 1;
if (!cli.processInput())
return 1;
+ bool success = false;
try
{
- cli.actOnInput();
+ success = cli.actOnInput();
}
catch (boost::exception const& _exception)
{
cerr << "Exception during output generation: " << boost::diagnostic_information(_exception) << endl;
- return 1;
+ success = false;
}
- return 0;
+ return success ? 0 : 1;
}