summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ogClient.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ogClient.py b/src/ogClient.py
index 31ee5d3..abacc12 100644
--- a/src/ogClient.py
+++ b/src/ogClient.py
@@ -31,8 +31,7 @@ class ogClient:
self.mode = self.CONFIG['opengnsys']['mode']
if self.mode not in {'virtual', 'live', 'linux', 'windows'}:
- logging.critical('Invalid ogClient mode')
- raise ValueError('Mode not supported.')
+ raise ValueError(f'Invalid ogClient mode: {self.mode}.')
if self.mode in {'linux', 'windows'}:
self.event_sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
self.event_sock.setblocking(0)
@@ -191,4 +190,4 @@ class ogClient:
message = event_sock.recv(4096).decode('utf-8').rstrip()
self.send_event_hint(message)
else:
- logging.critical('Invalid state: %s', str(state))
+ raise ValueError(f'Invalid ogClient run state: {str(state)}.')