Log an error for invalid detach_tab argument
This commit is contained in:
parent
3e672ac178
commit
2b441df9e9
@ -104,6 +104,7 @@ def detach_window_parse(func, rest):
|
||||
@func_with_args('detach_tab')
|
||||
def detach_tab_parse(func, rest):
|
||||
if rest not in ('new', 'ask'):
|
||||
log_error('Ignoring invalid detach_tab argument: {}'.format(rest))
|
||||
rest = 'new'
|
||||
return func, (rest,)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user