mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-30 07:56:14 -06:00
Use Tobi's style for wrapping errors
This commit is contained in:
parent
63ce52cbfa
commit
4f39da77bb
5 changed files with 20 additions and 26 deletions
|
|
@ -31,9 +31,8 @@ func (p *Processor) Delete(ctx context.Context, accessToken string) gtserror.Wit
|
|||
}
|
||||
|
||||
if err := p.state.DB.DeleteWebPushSubscriptionByTokenID(ctx, tokenID); err != nil {
|
||||
return gtserror.NewErrorInternalError(
|
||||
gtserror.Newf("couldn't delete Web Push subscription for token ID %s: %w", tokenID, err),
|
||||
)
|
||||
err := gtserror.Newf("couldn't delete Web Push subscription for token ID %s: %w", tokenID, err)
|
||||
return gtserror.NewErrorInternalError(err)
|
||||
}
|
||||
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue