Fix error printing
This commit is contained in:
@ -404,7 +404,7 @@ def webpanel(action: str, domain: str, port: int, admin_username: str, admin_pas
|
|||||||
try:
|
try:
|
||||||
if action == 'start':
|
if action == 'start':
|
||||||
if not domain or not port or not admin_username or not admin_password:
|
if not domain or not port or not admin_username or not admin_password:
|
||||||
raise click.UsageError('Error: Both --domain and --port are required for the start action.')
|
raise click.UsageError('Error: the --domain, --port, --admin-username, and --admin-password are required for the start action.')
|
||||||
cli_api.start_webpanel(domain, port, admin_username, admin_password, expiration_minutes, debug)
|
cli_api.start_webpanel(domain, port, admin_username, admin_password, expiration_minutes, debug)
|
||||||
url = cli_api.get_webpanel_url()
|
url = cli_api.get_webpanel_url()
|
||||||
click.echo(f'Hysteria web panel is now running. The service is accessible on: {url}')
|
click.echo(f'Hysteria web panel is now running. The service is accessible on: {url}')
|
||||||
|
|||||||
Reference in New Issue
Block a user