feat(GODT-2674): add more logs to failed update.

This commit is contained in:
Jakub
2023-06-02 16:08:11 +02:00
committed by Jakub Cuth
parent c46b3245b8
commit 4902898880
2 changed files with 105 additions and 49 deletions

View File

@ -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
}