diff --git a/simple-cam.cpp b/simple-cam.cpp
index 3aa975e..d51000c 100644
--- a/simple-cam.cpp
+++ b/simple-cam.cpp
@@ -95,6 +95,13 @@ int main()
 	CameraManager *cm = new CameraManager();
 	cm->start();
 
+	if(!cm->cameras().size()) {
+		std::cout << "Please connect atleast one camera to the system."
+			  << std::endl;
+		cm->stop();
+		return -1;
+	}
+
 	/*
 	 * Just as a test, list all id's of the Camera registered in the
 	 * system. They are indexed by name by the CameraManager.
