Check for errors from the Serve() function.

This commit is contained in:
Ward Vandewege 2021-04-23 17:16:12 -04:00
parent 252c68c50a
commit 1b30874cf8

View file

@ -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)
}
},
}