fix: properly handle NoAppsExist in network:rebuild-all and buildpacks:set

Refs #6815
This commit is contained in:
Jose Diaz-Gonzalez committed 2025-03-08 23:49:40 -05:00
1 parent 4ffbd357ee
commit b4f3741ac7
2 files changed
+5 -1

No files matched your search

+1 -1
View File
@@ -162,7 +162,7 @@ func CommandSetProperty(appName string, property string, value string) error {
} }
apps, err := common.DokkuApps() apps, err := common.DokkuApps()
if err != nil { if err != nil && !errors.Is(err, common.NoAppsExist) {
return err return err
} }
for _, app := range apps { for _, app := range apps {
+4
View File
@@ -145,6 +145,10 @@ func CommandList(format string) error {
func CommandRebuildall() error { func CommandRebuildall() error {
apps, err := common.DokkuApps() apps, err := common.DokkuApps()
if err != nil { if err != nil {
if errors.Is(err, common.NoAppsExist) {
common.LogWarn(err.Error())
return nil
}
return err return err
} }