exit 1 if startup fails

This commit is contained in:
Shivaram Lingamneni 2019-02-02 21:15:41 -05:00
parent cbe0f79f73
commit 7f9445324d
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ Options:
server, err := irc.NewServer(config, logman)
if err != nil {
logman.Error("server", fmt.Sprintf("Could not load server: %s", err.Error()))
return
os.Exit(1)
}
if !arguments["--quiet"].(bool) {
logman.Info("server", "Server running")