Fail on errors (#6986)

* Return an error when something went wrong

* Add changelog
This commit is contained in:
Andre Duffeck
2023-08-08 13:12:03 +02:00
committed by GitHub
parent 3093a8456a
commit 52750bd615
2 changed files with 2 additions and 1 deletions

View File

@@ -187,7 +187,7 @@ func RebuildJSONCS3Indexes(cfg *config.Config) *cli.Command {
fmt.Printf("done\n")
}
if errorsOccured {
fmt.Printf("There were errors. Please review the logs.")
return errors.New("There were errors. Please review the logs or try again.")
}
return nil