Skip to content

Commit

Permalink
[bugfix] wrap the correct error on failed account update (#1176)
Browse files Browse the repository at this point in the history
Signed-off-by: kim <grufwub@gmail.com>

Signed-off-by: kim <grufwub@gmail.com>
  • Loading branch information
NyaaaWhatsUpDoc committed Nov 29, 2022
1 parent 97f5453 commit d445c60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/federation/dereferencing/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit d445c60

Please sign in to comment.