From f4f01e9b7b275a0dc5c479d984fbcad05e740bbe Mon Sep 17 00:00:00 2001 From: Stephen Boddy Date: Sat, 19 Sep 2015 17:30:31 +0200 Subject: [PATCH] Minor correction to actually return error message, rather than just contemplating it. --- terminatorlib/ipc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminatorlib/ipc.py b/terminatorlib/ipc.py index 64498c0e..74370a89 100644 --- a/terminatorlib/ipc.py +++ b/terminatorlib/ipc.py @@ -87,7 +87,7 @@ class DBusService(Borg, dbus.service.Object): terminals_after = set(self.get_terminals()) new_terminal_set = list(terminals_after - terminals_before) if len(new_terminal_set) != 1: - "ERROR: Cannot determine the UUID of the added terminal" + return "ERROR: Cannot determine the UUID of the added terminal" else: return new_terminal_set[0]