Skip to content

Commit 9de7ad4

Browse files
authored
Merge pull request #1125 from devstream-io/main
fix: missing return in dtm init
2 parents 862516f + dff1fb4 commit 9de7ad4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cmd/devstream/init.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package main
22

33
import (
4+
"errors"
45
"fmt"
56
"runtime"
67
"strings"
@@ -99,7 +100,7 @@ func GetPluginsAndPluginDirFromFlags() (tools []configmanager.Tool, pluginDir st
99100
}
100101

101102
if len(pluginsName) == 0 {
102-
log.Errorf("Please use --plugins to specify plugins to download or use --all to download all plugins.")
103+
return nil, "", errors.New("Please use --plugins to specify plugins to download or use --all to download all plugins.")
103104
}
104105
log.Debugf("plugins to download: %v", pluginsName)
105106

0 commit comments

Comments
 (0)