Define common application exit codes for backend executables in Exit.go.

Improve logging of webapi start.
This commit is contained in:
Kleissner
2021-11-15 03:00:24 +01:00
parent 9626fa8088
commit d06c2e0b1a
6 changed files with 37 additions and 12 deletions

View File

@@ -21,7 +21,7 @@ import (
func init() {
if status, err := core.LoadConfig("Config.yaml"); err != nil {
fmt.Printf("Error loading config file: %s", err.Error())
os.Exit(1)
os.Exit(core.ExitErrorConfigAccess)
}
core.InitLog()