Minor correction to actually return error message, rather than just contemplating it.
This commit is contained in:
parent
5b5ca89823
commit
f4f01e9b7b
|
@ -87,7 +87,7 @@ class DBusService(Borg, dbus.service.Object):
|
||||||
terminals_after = set(self.get_terminals())
|
terminals_after = set(self.get_terminals())
|
||||||
new_terminal_set = list(terminals_after - terminals_before)
|
new_terminal_set = list(terminals_after - terminals_before)
|
||||||
if len(new_terminal_set) != 1:
|
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:
|
else:
|
||||||
return new_terminal_set[0]
|
return new_terminal_set[0]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue