Ignore:
Timestamp:
2011-04-18T14:14:08Z (13 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
2423c93
Parents:
6cc36ef
Message:

Try to show better Twitter error messages. Sadly this doesn't always work
since Twitter can't seem to make up their mind on the formatting of their
error responses, sometimes using XML and sometimes plain text.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/twitter/twitter.c

    r6cc36ef r6eca2eb  
    151151                if( info->request_token == NULL )
    152152                {
    153                         imcb_error( ic, "OAuth error: %s", info->http->status_string );
     153                        imcb_error( ic, "OAuth error: %s", twitter_parse_error( info->http ) );
    154154                        imc_logout( ic, TRUE );
    155155                        return FALSE;
     
    167167                if( info->token == NULL || info->token_secret == NULL )
    168168                {
    169                         imcb_error( ic, "OAuth error: %s", info->http->status_string );
     169                        imcb_error( ic, "OAuth error: %s", twitter_parse_error( info->http ) );
    170170                        imc_logout( ic, TRUE );
    171171                        return FALSE;
Note: See TracChangeset for help on using the changeset viewer.