mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fix: cli error message when installing plugin doesn't include helpful… (#32467)
* Fix: cli error message when installing plugin doesn't include helpful info * Update pkg/cmd/grafana-cli/services/api_client.go Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com> Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
parent
2c72f8babc
commit
3b087db6ac
@ -28,7 +28,8 @@ func (client *GrafanaComClient) GetPlugin(pluginId, repoUrl string) (models.Plug
|
|||||||
body, err := sendRequestGetBytes(HttpClient, repoUrl, "repo", pluginId)
|
body, err := sendRequestGetBytes(HttpClient, repoUrl, "repo", pluginId)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if errors.Is(err, ErrNotFoundError) {
|
if errors.Is(err, ErrNotFoundError) {
|
||||||
return models.Plugin{}, errutil.Wrap("Failed to find requested plugin, check if the plugin_id is correct", err)
|
return models.Plugin{}, errutil.Wrap(
|
||||||
|
fmt.Sprintf("Failed to find requested plugin, check if the plugin_id (%s) is correct", pluginId), err)
|
||||||
}
|
}
|
||||||
return models.Plugin{}, errutil.Wrap("Failed to send request", err)
|
return models.Plugin{}, errutil.Wrap("Failed to send request", err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user