mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-15 14:56:42 +00:00
feat(GODT-2674): Add more logs during update failed.
(cherry picked from commit3afd94c61d) feat(GODT-2674): add more logs to failed update. (cherry picked from commit4902898880)
This commit is contained in:
@ -27,6 +27,7 @@ import (
|
||||
"github.com/Masterminds/semver/v3"
|
||||
"github.com/ProtonMail/gopenpgp/v2/crypto"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
var (
|
||||
@ -101,6 +102,7 @@ func (u *Updater) InstallUpdate(ctx context.Context, downloader Downloader, upda
|
||||
}
|
||||
|
||||
if err := u.installer.InstallUpdate(update.Version, bytes.NewReader(b)); err != nil {
|
||||
logrus.WithError(err).Error("Failed to install update")
|
||||
return ErrInstall
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user