You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnfmt.Errorf("failed to create plugin directory %s: %w", downloadDir, err)
@@ -148,13 +148,32 @@ func doDownloadPluginFromHub(ctx context.Context, c *cloudquery_api.ClientWithRe
148
148
iferr!=nil {
149
149
returnfmt.Errorf("failed to get plugin metadata from hub: %w", err)
150
150
}
151
+
151
152
switchstatusCode {
152
153
casehttp.StatusOK:
153
154
// we allow this status code
154
155
casehttp.StatusUnauthorized:
155
156
returnfmt.Errorf("unauthorized. Try logging in via `cloudquery login`")
156
157
casehttp.StatusNotFound:
157
-
returnfmt.Errorf("failed to download plugin %v %v/%v@%v: plugin version not found. If you're trying to use a private plugin you'll need to run `cloudquery login` first", ops.PluginKind, ops.PluginTeam, ops.PluginName, ops.PluginVersion)
158
+
varerrRetryWithLogin=fmt.Errorf("failed to download plugin %v %v/%v@%v: plugin version not found. If you're trying to use a private plugin you'll need to run `cloudquery login` first", ops.PluginKind, ops.PluginTeam, ops.PluginName, ops.PluginVersion)
0 commit comments