mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 23:01:47 +08:00
Chore: use errutil for pluginRepo errors (#78647)
* Chore: use errutil for pluginRepo errors * Update pkg/util/errutil/status.go * Use errutil helper functions Co-Authored-By: Marcus Efraimsson <marcus.efraimsson@gmail.com> * Forgot the log level * Use entity --------- Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
This commit is contained in:
@ -98,7 +98,7 @@ func (m *Manager) PluginVersion(pluginID, version string, compatOpts CompatOpts)
|
||||
_, hasAnyArch := compatibleVer.Arch["any"]
|
||||
if isGrafanaCorePlugin && hasAnyArch {
|
||||
// Trying to install a coupled core plugin
|
||||
return VersionData{}, ErrCorePlugin{id: pluginID}
|
||||
return VersionData{}, ErrCorePlugin(pluginID)
|
||||
}
|
||||
|
||||
return compatibleVer, nil
|
||||
|
Reference in New Issue
Block a user