(trunk-1655) Minor correction to actually return error message, rather than just contemplating it
This commit is contained in:
parent
28a003361b
commit
177c62068c
|
@ -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