Browse Source

exit 1 if startup fails

tags/v1.0.0-rc1
Shivaram Lingamneni 5 years ago
parent
commit
7f9445324d
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      oragono.go

+ 1
- 1
oragono.go View File

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

Loading…
Cancel
Save