summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--client/controller.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/client/controller.cpp b/client/controller.cpp
index cf06aa3a..c5722a1e 100644
--- a/client/controller.cpp
+++ b/client/controller.cpp
@@ -44,6 +44,7 @@ Controller::Controller(ControllerInterface *handler)
char *p_socket = getenv("SPICE_XPI_SOCKET");
if (!p_socket) {
LOG_ERROR("Failed to get a controller connection (SPICE_XPI_SOCKET)");
+ throw Exception("Failed to get a controller connection (SPICE_XPI_SOCKET)");
}
strncpy(pipe_name, p_socket, sizeof(pipe_name));
#endif