mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-25 13:29:27 +01:00
exit 1 if startup fails
This commit is contained in:
parent
cbe0f79f73
commit
7f9445324d
@ -152,7 +152,7 @@ Options:
|
|||||||
server, err := irc.NewServer(config, logman)
|
server, err := irc.NewServer(config, logman)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logman.Error("server", fmt.Sprintf("Could not load server: %s", err.Error()))
|
logman.Error("server", fmt.Sprintf("Could not load server: %s", err.Error()))
|
||||||
return
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
if !arguments["--quiet"].(bool) {
|
if !arguments["--quiet"].(bool) {
|
||||||
logman.Info("server", "Server running")
|
logman.Info("server", "Server running")
|
||||||
|
Loading…
Reference in New Issue
Block a user