Check for errors from the Serve() function.

This commit is contained in:
Ward Vandewege committed 2021-04-23 17:18:14 -04:00
1 parent 252c68c50a
commit 1b30874cf8
1 file changed
+4 -1
+4 -1
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)
}
},
}