Skip to content

Commit

Permalink
Surfacing browser errors (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
ulisesL authored Sep 3, 2022
1 parent c5870a6 commit 1742d0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions util/auth-handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion util/browser.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 1742d0d

Please sign in to comment.