Exit when encountering config parsing errors

This commit is contained in:
Michael Barz
2022-05-09 11:49:15 +02:00
parent ccdc54effc
commit f6e2f46ebb
34 changed files with 54 additions and 4 deletions
@@ -2,6 +2,7 @@ package command
import (
"fmt"
"os"
"github.com/cs3org/reva/v2/pkg/events"
"github.com/cs3org/reva/v2/pkg/events/server"
@@ -24,6 +25,7 @@ func Server(cfg *config.Config) *cli.Command {
err := parser.ParseConfig(cfg)
if err != nil {
fmt.Printf("%v", err)
os.Exit(1)
}
return err
},