fix: ensure all report subcommands exit 0 when there is no app
Closes #7454
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package common
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"strings"
|
||||
)
|
||||
@@ -33,7 +32,7 @@ func filterApps(apps []string) ([]string, error) {
|
||||
filteredApps = removeEmptyEntries(filteredApps)
|
||||
|
||||
if len(filteredApps) == 0 {
|
||||
return filteredApps, fmt.Errorf("You haven't deployed any applications yet")
|
||||
return filteredApps, NoAppsExist
|
||||
}
|
||||
|
||||
return filteredApps, nil
|
||||
|
||||
Reference in New Issue
Block a user