diff --git a/main.go b/main.go index b2486b1..10a41a6 100644 --- a/main.go +++ b/main.go @@ -43,5 +43,9 @@ func handleMtaConnection(clientConnection *bufio.ReadWriter) { func main() { logger = logging.NewLogger(os.Stdout, os.Stderr, logging.DEBUG) - runServer() + err := runServer() + if err != nil { + logger.Errorf("Could not run server: %s\n", err.Error()) + os.Exit(1) + } }