We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6197454 commit cc89da9Copy full SHA for cc89da9
main.go
@@ -16,8 +16,11 @@ func main() {
16
17
host := os.Getenv("CHAT_HOST")
18
port := os.Getenv("CHAT_PORT")
19
- srv := newServer(host + ":" + port)
+ if host == "" || port == "" {
20
+ logrus.Fatalf("incorrect address to start the server")
21
+ }
22
23
+ srv := newServer(host + ":" + port)
24
go func() {
25
if err := srv.start(); err != nil {
26
logrus.Errorf("failed to start server: %s", err.Error())
0 commit comments