Print to stderr
This commit is contained in:
parent
88f5951989
commit
797ac0c7da
4
jlmkr.py
4
jlmkr.py
|
@ -792,8 +792,8 @@ def edit_jail(jail_name):
|
||||||
else:
|
else:
|
||||||
jail_config_path = get_jail_config_path(jail_name)
|
jail_config_path = get_jail_config_path(jail_name)
|
||||||
if not shutil.which(TEXT_EDITOR):
|
if not shutil.which(TEXT_EDITOR):
|
||||||
print(f"Unable to edit config file: {jail_config_path}.")
|
eprint(f"Unable to edit config file: {jail_config_path}.")
|
||||||
print(f"The {TEXT_EDITOR} text editor is not available.")
|
eprint(f"The {TEXT_EDITOR} text editor is not available.")
|
||||||
else:
|
else:
|
||||||
os.system(f'{TEXT_EDITOR} {get_jail_config_path(jail_name)}')
|
os.system(f'{TEXT_EDITOR} {get_jail_config_path(jail_name)}')
|
||||||
if jail_is_running(jail_name):
|
if jail_is_running(jail_name):
|
||||||
|
|
Loading…
Reference in New Issue