summaryrefslogtreecommitdiff
path: root/internal/federation
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2022-11-29 17:40:30 +0000
committerLibravatar GitHub <noreply@github.com>2022-11-29 18:40:30 +0100
commitd445c60a26e7f51f6d742e992d15cb5fabe2100c (patch)
treebf97d24dc72100ac6ccdb0d64da284d52af1ee61 /internal/federation
parent[chore] Tidy up some of the search logic (#1082) (diff)
downloadgotosocial-d445c60a26e7f51f6d742e992d15cb5fabe2100c.tar.xz
[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 (limited to 'internal/federation')
-rw-r--r--internal/federation/dereferencing/account.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/federation/dereferencing/account.go b/internal/federation/dereferencing/account.go
index 48ee9f1d7..dcaa08b51 100644
--- 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
}
}