Skip to content

Commit 21f8bf5

Browse files
committed
kool start - midding docker-compose.yml
1 parent 852c3f0 commit 21f8bf5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

commands/start.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
package commands
22

33
import (
4+
"fmt"
45
"kool-dev/kool/core/builder"
56
"kool-dev/kool/core/environment"
67
"kool-dev/kool/core/network"
78
"kool-dev/kool/services/checker"
89
"kool-dev/kool/services/updater"
10+
"strings"
911

1012
"github.com/spf13/cobra"
1113
)
@@ -107,6 +109,9 @@ func (s *KoolStart) Execute(args []string) (err error) {
107109
}
108110

109111
if err = s.checkDependencies(); err != nil {
112+
if strings.HasPrefix(err.Error(), "no configuration file provided: not found") {
113+
err = fmt.Errorf("could not find docker-compose.yml - check your current working directory.\n\n[err: %v]", err)
114+
}
110115
return
111116
}
112117

0 commit comments

Comments
 (0)