Catalog: Show install error with incompatible version (#65059)

This commit is contained in:
Andres Martinez Gotor
2023-04-19 10:22:24 +02:00
committed by GitHub
parent bc5881a051
commit 98778289cb
8 changed files with 54 additions and 13 deletions
+9
View File
@@ -53,6 +53,15 @@ func (e Response4xxError) Error() string {
return fmt.Sprintf("%d", e.StatusCode)
}
type ErrArcNotFound struct {
PluginID string
SystemInfo string
}
func (e ErrArcNotFound) Error() string {
return fmt.Sprintf("%s is not compatible with your system architecture: %s", e.PluginID, e.SystemInfo)
}
type ErrVersionUnsupported struct {
PluginID string
RequestedVersion string