mirror of https://github.com/docker/compose.git
project existence check: added error message
Signed-off-by: Mehrad Dadar <mehrad.dadar@gmail.com>
This commit is contained in:
parent
35f37cd1f7
commit
42c3adb236
|
@ -100,7 +100,7 @@ func (s *composeService) projectFromName(containers Containers, projectName stri
|
||||||
Name: projectName,
|
Name: projectName,
|
||||||
}
|
}
|
||||||
if len(containers) == 0 {
|
if len(containers) == 0 {
|
||||||
return project, nil
|
return project, errors.New("no such project: " + projectName)
|
||||||
}
|
}
|
||||||
set := map[string]types.ServiceConfig{}
|
set := map[string]types.ServiceConfig{}
|
||||||
for _, c := range containers {
|
for _, c := range containers {
|
||||||
|
|
Loading…
Reference in New Issue