taillogin: check err in controlclient.New.

Signed-off-by: David Anderson <dave@natulte.net>
pull/24/head
David Anderson 5 years ago
parent 452b81d56b
commit 14af0c4eb3

@ -49,6 +49,9 @@ func main() {
ServerURL: *server, ServerURL: *server,
Hostinfo: &hi, Hostinfo: &hi,
}) })
if err != nil {
log.Fatal(err)
}
c.SetStatusFunc(func(new controlclient.Status) { c.SetStatusFunc(func(new controlclient.Status) {
if new.URL != "" { if new.URL != "" {
fmt.Fprintf(os.Stderr, "To authenticate, visit:\n\n\t%s\n\n", new.URL) fmt.Fprintf(os.Stderr, "To authenticate, visit:\n\n\t%s\n\n", new.URL)

Loading…
Cancel
Save