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 0295d39 commit afdaf90Copy full SHA for afdaf90
trellis/trellis.go
@@ -43,7 +43,7 @@ func (t *Trellis) Detect() []string {
43
44
if len(parent) == 1 {
45
if parent == "." || os.IsPathSeparator(parent[0]) {
46
- log.Fatalln("Could not detect a Trellis project")
+ return []string{}
47
}
48
49
@@ -104,7 +104,7 @@ func (t *Trellis) Valid() bool {
104
105
func (t *Trellis) EnforceValid(ui cli.Ui) {
106
if !t.Valid() {
107
- ui.Error("No Trellis project detected. This command must be run in the root of a Trellis project.")
+ ui.Error("No Trellis project detected in the current directory or any of its parent directories.")
108
os.Exit(1)
109
110
0 commit comments