MCPcopy
hub / github.com/mattermost/mattermost / SetPluginError

Method SetPluginError

server/public/plugin/environment.go:165–171  ·  view source on GitHub ↗
(id string, err string)

Source from the content-addressed store, hash-verified

163}
164
165func (env *Environment) SetPluginError(id string, err string) {
166 if rp, ok := env.registeredPlugins.Load(id); ok {
167 p := rp.(registeredPlugin)
168 p.Error = err
169 env.registeredPlugins.Store(id, p)
170 }
171}
172
173func (env *Environment) getPluginError(id string) string {
174 if rp, ok := env.registeredPlugins.Load(id); ok {

Callers 2

ActivateMethod · 0.95
ReattachMethod · 0.95

Calls 2

LoadMethod · 0.65
StoreMethod · 0.45

Tested by

no test coverage detected