Kaydet (Commit) ee0f878d authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1251596 Uncaught exception

Change-Id: I02b7abcd9ee17158ee063b2c9b6d0324eef70801
üst 5b7497e5
...@@ -909,6 +909,8 @@ int GrindApp::Main() ...@@ -909,6 +909,8 @@ int GrindApp::Main()
SAL_IMPLEMENT_MAIN() SAL_IMPLEMENT_MAIN()
{ {
try
{
bool bHelp = false; bool bHelp = false;
for( sal_uInt16 i = 0; i < Application::GetCommandLineParamCount(); i++ ) for( sal_uInt16 i = 0; i < Application::GetCommandLineParamCount(); i++ )
...@@ -941,6 +943,17 @@ SAL_IMPLEMENT_MAIN() ...@@ -941,6 +943,17 @@ SAL_IMPLEMENT_MAIN()
aGrindApp.Main(); aGrindApp.Main();
DeInitVCL(); DeInitVCL();
}
catch (const css::uno::Exception& e)
{
SAL_WARN("vcl.app", "Fatal exception: " << e.Message);
return EXIT_FAILURE;
}
catch (const std::exception& e)
{
SAL_WARN("vcl.app", "Fatal exception: " << e.what());
return EXIT_FAILURE;
}
return EXIT_SUCCESS; return EXIT_SUCCESS;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment