Skip to content

Commit 42c3adb

Browse files
committed
project existence check: added error message
Signed-off-by: Mehrad Dadar <[email protected]>
1 parent 35f37cd commit 42c3adb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/compose/compose.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func (s *composeService) projectFromName(containers Containers, projectName stri
100100
Name: projectName,
101101
}
102102
if len(containers) == 0 {
103-
return project, nil
103+
return project, errors.New("no such project: " + projectName)
104104
}
105105
set := map[string]types.ServiceConfig{}
106106
for _, c := range containers {

0 commit comments

Comments
 (0)