Skip to content

Commit

Permalink
feat: change browser url output to stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
camaeel committed Oct 21, 2024
1 parent 6487e69 commit d83f4c7
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ func main() {
os.Exit(1)
}
} else {
fmt.Println(browser.PrintableOpenURL(redirectUrl))
_, err = fmt.Fprintln(os.Stderr, browser.PrintableOpenURL(redirectUrl))
if err != nil {
slog.Error("Unable to open print link", slog.String("error", err.Error()))
os.Exit(1)
}
}

select {
Expand Down

0 comments on commit d83f4c7

Please sign in to comment.