Skip to content

Commit

Permalink
Check for errors from the Serve() function.
Browse files Browse the repository at this point in the history
  • Loading branch information
cure committed Apr 23, 2021
1 parent 252c68c commit 1b30874
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/headscale/headscale.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ var serveCmd = &cobra.Command{
if err != nil {
log.Fatalf("Error initializing: %s", err)
}
h.Serve()
err = h.Serve()
if err != nil {
log.Fatalf("Error initializing: %s", err)
}
},
}

Expand Down

0 comments on commit 1b30874

Please sign in to comment.