refactor: unify error handling even more

This commit is contained in:
2025-09-03 21:28:45 +02:00
parent 863171f66b
commit 5c0800b5ce
2 changed files with 47 additions and 20 deletions

View File

@@ -19,7 +19,10 @@ func Init() error {
return err
}
parseFlags()
err = parseFlags()
if err != nil {
return err
}
if GetReadonlyMode() && GetSinkholeMode() {
return fmt.Errorf("Cannot enable both readonly and sinkhole modes at the same time.")