diff --git a/modules/plugins/loader.go b/modules/plugins/loader.go index 1c8e87686c..89bbf24187 100644 --- a/modules/plugins/loader.go +++ b/modules/plugins/loader.go @@ -4,6 +4,7 @@ package plugins import ( + "errors" "fmt" "os" "path/filepath" @@ -99,7 +100,7 @@ func loadPlugin(path string) error { } if plug == nil || *plug == nil { - return fmt.Errorf("Plugin symbol is nil") + return errors.New("plugin symbol is nil") } Register(*plug)