refactor: unify error handling even more
This commit is contained in:
@@ -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.")
|
||||
|
Reference in New Issue
Block a user