From 7d3d3d1d6078828122b4b2d1376b1aaf2ba03b8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Thu, 4 Aug 2022 11:16:39 +0200 Subject: [PATCH] Fix T100183: Setup assist: don't quit when browser can't be launched When launching Flamenco from a server system with no way to open a web browser, just ask the user to launch one. Quitting the Manager because of this was a bit too dramatic. --- cmd/flamenco-manager/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/flamenco-manager/main.go b/cmd/flamenco-manager/main.go index 70d19db0..342d536f 100644 --- a/cmd/flamenco-manager/main.go +++ b/cmd/flamenco-manager/main.go @@ -288,10 +288,10 @@ func openWebbrowser(ctx context.Context, url url.URL) { urlToTry := url.String() if err := browser.OpenURL(urlToTry); err != nil { - log.Fatal().Err(err).Msgf("unable to open a browser to %s", urlToTry) + log.Error().Err(err).Msgf("unable to open a browser to %s, please open it yourself or try any of the other URLs above", urlToTry) + return } log.Info().Str("url", urlToTry).Msgf("opened browser to the Flamenco interface") - } func parseCliArgs() {