3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-25 05:19:25 +01:00

exit 1 if startup fails

This commit is contained in:
Shivaram Lingamneni 2019-02-02 21:15:41 -05:00
parent cbe0f79f73
commit 7f9445324d

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")