From e1fb5a1beee659312fd4ff32d1118b701e6e5837 Mon Sep 17 00:00:00 2001 From: ReturnFI <151555003+ReturnFI@users.noreply.github.com> Date: Sun, 14 Dec 2025 20:54:04 +0000 Subject: [PATCH] fix(cli): improve error message during Hysteria2 installation --- core/cli.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/cli.py b/core/cli.py index e52cc16..8518039 100644 --- a/core/cli.py +++ b/core/cli.py @@ -26,10 +26,9 @@ def cli(): @click.option('--sni', '-s', required=False, default='bts.com', help='SNI for Hysteria2 (default: bts.com)', type=str) def install_hysteria2(port: int, sni: str): try: - output = cli_api.install_hysteria2(port, sni) - click.echo(output) + cli_api.install_hysteria2(port, sni) except Exception as e: - click.echo(f'{e}', err=True) + click.echo(f'\nAn error occurred during installation: {e}', err=True) @cli.command('uninstall-hysteria2')