From 14af0c4eb38ca193a3c4e6c95a0593349e4f6119 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 10 Feb 2020 23:13:28 -0800 Subject: [PATCH] taillogin: check err in controlclient.New. Signed-off-by: David Anderson --- cmd/taillogin/taillogin.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/taillogin/taillogin.go b/cmd/taillogin/taillogin.go index 605cd3d01..187289c25 100644 --- a/cmd/taillogin/taillogin.go +++ b/cmd/taillogin/taillogin.go @@ -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)