gtsocial-umbx

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit d445c60a26e7f51f6d742e992d15cb5fabe2100c
parent 97f54533781139407f7d33aa0bdb80d0bf3264f6
Author: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>
Date:   Tue, 29 Nov 2022 17:40:30 +0000

[bugfix] wrap the correct error on failed account update (#1176)

Signed-off-by: kim <grufwub@gmail.com>

Signed-off-by: kim <grufwub@gmail.com>
Diffstat:
Minternal/federation/dereferencing/account.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/internal/federation/dereferencing/account.go b/internal/federation/dereferencing/account.go @@ -401,7 +401,7 @@ func (d *deref) GetAccount(ctx context.Context, params GetAccountParams) (foundA if accountDomainChanged || sharedInboxChanged || fieldsChanged || fingeredChanged { if dbErr := d.db.UpdateAccount(ctx, foundAccount); dbErr != nil { - err = newErrDB(fmt.Errorf("GetRemoteAccount: error updating remoteAccount: %w", err)) + err = newErrDB(fmt.Errorf("GetRemoteAccount: error updating remoteAccount: %w", dbErr)) return } }