aboutsummaryrefslogtreecommitdiffstats
path: root/solc/main.cpp
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2017-03-11 02:11:01 +0800
committerchriseth <c@ethdev.com>2017-03-11 02:23:43 +0800
commit31a5e5bfef086c1cac477661dd627fa774bc44f5 (patch)
tree9a4fb8b2a8a4b65a6c4270ce6418fef2466710a2 /solc/main.cpp
parent864bfafbcd77846b688ece3edb945a285b74c747 (diff)
downloaddexon-solidity-31a5e5bfef086c1cac477661dd627fa774bc44f5.tar.gz
dexon-solidity-31a5e5bfef086c1cac477661dd627fa774bc44f5.tar.zst
dexon-solidity-31a5e5bfef086c1cac477661dd627fa774bc44f5.zip
Do not overwrite files unless forced.
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;
}