From 025181fa2ebe7cb7a8881d92b103669047bc3d0a Mon Sep 17 00:00:00 2001
From: Sebastian Hahta <joseha@utu.fi>
Date: Wed, 17 Jul 2019 14:14:35 +0300
Subject: [PATCH] error message on exception

---
 components/rgbd-sources/src/net.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/components/rgbd-sources/src/net.cpp b/components/rgbd-sources/src/net.cpp
index 210a0e624..7dca9d416 100644
--- a/components/rgbd-sources/src/net.cpp
+++ b/components/rgbd-sources/src/net.cpp
@@ -47,7 +47,13 @@ bool NetSource::_getCalibration(Universe &net, const UUID &peer, const string &s
 				sleep_for(milliseconds(500));
 			}
 		}
+		
+	} catch (const std::exception& ex) {
+		LOG(ERROR) << "Exception: " << ex.what();
+		return false;
+
 	} catch (...) {
+		LOG(ERROR) << "Unknown exception";
 		return false;
 	}
 }
-- 
GitLab