Commit 46f6699e authored by Thomas Braun's avatar Thomas Braun
Browse files

main.cpp: Catch exception by reference

parent 5f89e5c5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -69,7 +69,7 @@ int main(int argc,char *argv[])
		TANGO_LOG_INFO << "Ready to accept request" << std::endl;
		tg->server_run();
	}
	catch (std::bad_alloc)
	catch (std::bad_alloc&)
	{
		TANGO_LOG_INFO << "Can't allocate memory to store device object !!!" << std::endl;
		TANGO_LOG_INFO << "Exiting" << std::endl;