diff options
author | 2022-11-29 17:40:30 +0000 | |
---|---|---|
committer | 2022-11-29 18:40:30 +0100 | |
commit | d445c60a26e7f51f6d742e992d15cb5fabe2100c (patch) | |
tree | bf97d24dc72100ac6ccdb0d64da284d52af1ee61 | |
parent | [chore] Tidy up some of the search logic (#1082) (diff) | |
download | gotosocial-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>
-rw-r--r-- | internal/federation/dereferencing/account.go | 2 |
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 } } |