Catch generic std::exception as there can be thrown different types in case of differ...
authorBjoern Sikora <bjoern.sikora@intra2net.com>
Tue, 16 Jul 2013 09:49:26 +0000 (11:49 +0200)
committerBjoern Sikora <bjoern.sikora@intra2net.com>
Tue, 16 Jul 2013 09:49:26 +0000 (11:49 +0200)
src/serviceholder.cpp

index 7f7968f..e4a484b 100644 (file)
@@ -130,7 +130,7 @@ int Serviceholder::deserialize_services()
             boost::archive::text_iarchive ia(ifs);
             ia >> _service_container >> _ip_addr_helper;
         }
-        catch( const boost::archive::archive_exception& e )
+        catch( const std::exception& e )
         {
             // There is a corrupted object file, continue without recovering old Services' state.
             Log->print_exception_deserialize(e.what());