Skip to content
This repository was archived by the owner on Jul 8, 2026. It is now read-only.

Commit e1fb5a1

Browse files
committed
fix(cli): improve error message during Hysteria2 installation
1 parent 92c8236 commit e1fb5a1

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

core/cli.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,9 @@ def cli():
2626
@click.option('--sni', '-s', required=False, default='bts.com', help='SNI for Hysteria2 (default: bts.com)', type=str)
2727
def install_hysteria2(port: int, sni: str):
2828
try:
29-
output = cli_api.install_hysteria2(port, sni)
30-
click.echo(output)
29+
cli_api.install_hysteria2(port, sni)
3130
except Exception as e:
32-
click.echo(f'{e}', err=True)
31+
click.echo(f'\nAn error occurred during installation: {e}', err=True)
3332

3433

3534
@cli.command('uninstall-hysteria2')

0 commit comments

Comments
 (0)