Merge pull request #3743 from owncloud/exit-on-parse-error

Exit when encountering config parsing errors
This commit is contained in:
Michael Barz
2022-05-09 13:33:28 +02:00
committed by GitHub
34 changed files with 54 additions and 4 deletions
+2
View File
@@ -3,6 +3,7 @@ package command
import (
"context"
"fmt"
"os"
"github.com/owncloud/ocis/v2/extensions/ocs/pkg/config/parser"
"github.com/owncloud/ocis/v2/extensions/ocs/pkg/logging"
@@ -27,6 +28,7 @@ func Server(cfg *config.Config) *cli.Command {
err := parser.ParseConfig(cfg)
if err != nil {
fmt.Printf("%v", err)
os.Exit(1)
}
return err
},