Skip to content

Commit d2e09ef

Browse files
committed
ErrNoServices ProjectName may be empty
1 parent 752a3b6 commit d2e09ef

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/pkg/cli/getServices.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,18 @@ package cli
22

33
import (
44
"context"
5-
"fmt"
65

76
"github.com/DefangLabs/defang/src/pkg/cli/client"
87
"github.com/DefangLabs/defang/src/pkg/term"
98
defangv1 "github.com/DefangLabs/defang/src/protos/io/defang/v1"
109
)
1110

1211
type ErrNoServices struct {
13-
ProjectName string
12+
ProjectName string // may be empty
1413
}
1514

1615
func (e ErrNoServices) Error() string {
17-
return fmt.Sprintf("no services found in project %q", e.ProjectName)
16+
return "no services found in project " + e.ProjectName
1817
}
1918

2019
func GetServices(ctx context.Context, loader client.Loader, provider client.Provider, long bool) error {

0 commit comments

Comments
 (0)