taillogin: check err in controlclient.New.

Signed-off-by: David Anderson <dave@natulte.net>
This commit is contained in:
David Anderson 2020-02-10 23:13:28 -08:00
parent 452b81d56b
commit 14af0c4eb3

View File

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