(trunk-1655) Minor correction to actually return error message, rather than just contemplating it

This commit is contained in:
Stephen Boddy 2015-09-19 17:37:19 +02:00
parent 28a003361b
commit 177c62068c
1 changed files with 1 additions and 1 deletions

View File

@ -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]