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:
1 parent
efa02e3c28
commit
04b84cc840
1 file changed
+1
-1
+1
-1
@@ -85,7 +85,7 @@ func main() {
|
||||
log.Print("ready")
|
||||
|
||||
err := <-svrErr
|
||||
log.Print(err)
|
||||
log.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user