From 1742d0daf7e1d8fbea040a9bb012f0132a52ae98 Mon Sep 17 00:00:00 2001 From: ulisesL Date: Fri, 2 Sep 2022 18:31:56 -0700 Subject: [PATCH] Surfacing browser errors (#142) --- util/auth-handlers.go | 1 + util/browser.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/util/auth-handlers.go b/util/auth-handlers.go index 7f078f2..ba50ca6 100644 --- a/util/auth-handlers.go +++ b/util/auth-handlers.go @@ -85,6 +85,7 @@ func authorization3LOLoopback(authCodeURL string, consentSettings ConsentPageSet if be := b.OpenURL(authCodeURL); be != nil { fmt.Println("Your browser could not be opened to visit:") fmt.Println("\n", authCodeURL) + fmt.Println("\nError:", be) } else { fmt.Println("Your browser has been opened to visit:") fmt.Println("\n", authCodeURL) diff --git a/util/browser.go b/util/browser.go index 0af719f..a492abf 100644 --- a/util/browser.go +++ b/util/browser.go @@ -42,7 +42,7 @@ func (b *Browser) OpenURL(url string) error { } if err != nil { - return fmt.Errorf("Unable to open browser window for runtime: %s: %v", rt, err) + return fmt.Errorf("Unable to open browser window for runtime, %s: %v", rt, err) } return nil }