Skip to content

Commit 9d0d300

Browse files
committed
[solc] Exit code 2 for exceptions.
1 parent 2cb618a commit 9d0d300

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

solc/main.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,36 +44,36 @@ int main(int argc, char** argv)
4444
{
4545
cerr << "SMT logic error:" << endl;
4646
cerr << boost::diagnostic_information(_exception);
47-
return 1;
47+
return 2;
4848
}
4949
catch (langutil::UnimplementedFeatureError const& _exception)
5050
{
5151
cerr << "Unimplemented feature:" << endl;
5252
cerr << boost::diagnostic_information(_exception);
53-
return 1;
53+
return 2;
5454
}
5555
catch (langutil::InternalCompilerError const& _exception)
5656
{
5757
cerr << "Internal compiler error:" << endl;
5858
cerr << boost::diagnostic_information(_exception);
59-
return 1;
59+
return 2;
6060
}
6161
catch (boost::exception const& _exception)
6262
{
6363
cerr << "Uncaught exception:" << endl;
6464
cerr << boost::diagnostic_information(_exception) << endl;
65-
return 1;
65+
return 2;
6666
}
6767
catch (std::exception const& _exception)
6868
{
6969
cerr << "Uncaught exception:" << endl;
7070
cerr << boost::diagnostic_information(_exception) << endl;
71-
return 1;
71+
return 2;
7272
}
7373
catch (...)
7474
{
7575
cerr << "Uncaught exception" << endl;
7676
cerr << boost::current_exception_diagnostic_information() << endl;
77-
return 1;
77+
return 2;
7878
}
7979
}

0 commit comments

Comments
 (0)