We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddcad98 commit 310ae5dCopy full SHA for 310ae5d
internal/util/projutil/project_util.go
@@ -49,8 +49,11 @@ func MustInProjectRoot() {
49
// if the current directory has the "./build/dockerfile" file, then it is safe to say
50
// we are at the project root.
51
_, err := os.Stat(buildDockerfile)
52
- if err != nil && os.IsNotExist(err) {
53
- log.Fatalf("must run command in project root dir: project structure requires ./build/Dockerfile: (%v)", err)
+ if err != nil {
+ if os.IsNotExist(err) {
54
+ log.Fatal("must run command in project root dir: project structure requires ./build/Dockerfile")
55
+ }
56
+ log.Fatalf("error: (%v) while checking if current directory is the project root", err)
57
}
58
59
0 commit comments