fix panic bug of addon enable (#2985)

Signed-off-by: wangyike <wangyike_wyk@163.com>
This commit is contained in:
wyike
2021-12-24 11:12:26 +08:00
committed by GitHub
parent e519c6142a
commit 551992e8f2
+1 -1
View File
@@ -892,7 +892,7 @@ func (h *Installer) loadInstallPackage(name string) (*InstallPackage, error) {
meta, ok := metas[name]
if !ok {
return nil, errors.Wrapf(err, "fail to find the addon meta of %s", name)
return nil, fmt.Errorf("fail to find the addon meta of %s", name)
}
var uiData *UIData
uiData, err = h.cache.GetUIData(*h.r, name)