Skip to content

Commit

Permalink
twittermeow: return account settings auth errors immediately
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Jan 2, 2025
1 parent 6a8b8a3 commit 9208760
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/twittermeow/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ func (c *Client) LoadMessagesPage() (*response.InboxInitialStateResponse, *respo
IncludeExtDMNSFWMediaFilter: true,
})
if err != nil {
if IsAuthError(err) {
return nil, nil, err
}
c.Logger.Warn().Err(err).Msg("Failed to get account settings")
data = &response.AccountSettingsResponse{}
}
Expand Down

0 comments on commit 9208760

Please sign in to comment.