mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-04-11 19:08:08 -04:00
Fail on errors (#6986)
* Return an error when something went wrong * Add changelog
This commit is contained in:
@@ -2,4 +2,5 @@ Enhancement: Add command for rebuilding the jsoncs3 share manager indexes
|
||||
|
||||
We added a command for rebuilding the jsoncs3 share manager indexes.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/6986
|
||||
https://github.com/owncloud/ocis/pull/6971
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user