Browse Source

feat(plugins): adds warn log for scanning folders

symlinks outside to plugin folder can cause problems.
This commit makes sure to warn about it in the logs
bergquist 10 years ago
parent
commit
9343b0378d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      pkg/plugins/plugins.go

+ 1 - 0
pkg/plugins/plugins.go

@@ -55,6 +55,7 @@ func scan(pluginDir string) error {
 	}
 
 	if err := util.Walk(pluginDir, true, true, scanner.walker); err != nil {
+		log.Warn("Failed to scan dir \"%v\" error: %s", pluginDir, err)
 		return err
 	}