fix: report failure when server fails to start (#23)
Exit with an error when the server startup reports an error. For example, when the server fails to bind to the provided port.
This commit is contained in:
parent
efa02e3c28
commit
04b84cc840
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ func main() {
|
|||
log.Print("ready")
|
||||
|
||||
err := <-svrErr
|
||||
log.Print(err)
|
||||
log.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue