Minor correction to actually return error message, rather than just contemplating it.

This commit is contained in:
Stephen Boddy 2015-09-19 17:30:31 +02:00
parent 5b5ca89823
commit f4f01e9b7b
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]