Skip to content

Commit

Permalink
Merge pull request #1124 from aFlyBird0/fix-init-log
Browse files Browse the repository at this point in the history
fix: missing return in dtm init
  • Loading branch information
daniel-hutao authored Sep 26, 2022
2 parents e042b72 + ac9ff53 commit dff1fb4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/devstream/init.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package main

import (
"errors"
"fmt"
"runtime"
"strings"
Expand Down Expand Up @@ -99,7 +100,7 @@ func GetPluginsAndPluginDirFromFlags() (tools []configmanager.Tool, pluginDir st
}

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

Expand Down

0 comments on commit dff1fb4

Please sign in to comment.