Print to stderr

This commit is contained in:
Jip-Hop 2023-08-15 13:34:37 +02:00
parent 88f5951989
commit 797ac0c7da
1 changed files with 2 additions and 2 deletions

View File

@ -792,8 +792,8 @@ def edit_jail(jail_name):
else:
jail_config_path = get_jail_config_path(jail_name)
if not shutil.which(TEXT_EDITOR):
print(f"Unable to edit config file: {jail_config_path}.")
print(f"The {TEXT_EDITOR} text editor is not available.")
eprint(f"Unable to edit config file: {jail_config_path}.")
eprint(f"The {TEXT_EDITOR} text editor is not available.")
else:
os.system(f'{TEXT_EDITOR} {get_jail_config_path(jail_name)}')
if jail_is_running(jail_name):