Inform that PlatformIO Home server is already started in another process

This commit is contained in:
Ivan Kravets
2019-12-02 19:34:19 +02:00
parent d901cc875a
commit 5768fcd429

View File

@@ -108,9 +108,12 @@ def cli(port, host, no_open, shutdown_timeout):
) )
) )
click.echo("") click.echo("")
click.echo("Open PIO Home in your browser by this URL => %s" % home_url) click.echo("Open PlatformIO Home in your browser by this URL => %s" % home_url)
if already_started: if already_started:
click.secho(
"PlatformIO Home server is already started in another process.", fg="yellow"
)
return return
click.echo("PIO Home has been started. Press Ctrl+C to shutdown.") click.echo("PIO Home has been started. Press Ctrl+C to shutdown.")