🎨 Improve error message for installing marketplace package failed Fix https://github.com/siyuan-note/siyuan/issues/8507

This commit is contained in:
Daniel 2023-06-09 13:14:33 +08:00
parent 318b430c3b
commit e453f44d44
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -535,7 +535,7 @@ func downloadPackage(repoURLHash string, pushProgress bool, systemID string) (da
}).Get(u)
if nil != err {
logging.LogErrorf("get bazaar package [%s] failed: %s", u, err)
return nil, errors.New("get bazaar package failed: " + err.Error())
return nil, errors.New("get bazaar package failed, please check your network")
}
if 200 != resp.StatusCode {
logging.LogErrorf("get bazaar package [%s] failed: %d", u, resp.StatusCode)