Check for errors from the Serve() function.
This commit is contained in:
parent
252c68c50a
commit
1b30874cf8
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue