Commit aa7d1dd9 authored by Thomas Braun's avatar Thomas Braun
Browse files

main.cpp: Catch all std::exceptions

parent e6e4ed5f
Loading
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -403,6 +403,11 @@ int main(int argc, char *argv[])
        TANGO_LOG << "Can't allocate memory to store device object !!!" << std::endl;
        TANGO_LOG << "Exiting" << std::endl;
    }
    catch(std::exception &e)
    {
        TANGO_LOG << "Exception: " << e.what() << std::endl;
        TANGO_LOG << "Exiting" << std::endl;
    }
    catch(CORBA::Exception &e)
    {
        TANGO_LOG << "Received a CORBA::Exception" << std::endl;