diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2011-04-18 16:14:08 +0200 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2011-04-18 16:14:08 +0200 |
commit | 6eca2eb9a06d0991fa0f431839e528177313566a (patch) | |
tree | 44960d1c0f417cd9c989428317b937d89f6686b7 /protocols/twitter/twitter.c | |
parent | 6cc36efa70ff179de1468c8cfe614152366fa27b (diff) |
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.
Diffstat (limited to 'protocols/twitter/twitter.c')
-rw-r--r-- | protocols/twitter/twitter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/twitter/twitter.c b/protocols/twitter/twitter.c index 50bf6cd2..a74250bf 100644 --- a/protocols/twitter/twitter.c +++ b/protocols/twitter/twitter.c @@ -150,7 +150,7 @@ static gboolean twitter_oauth_callback( struct oauth_info *info ) if( info->request_token == NULL ) { - imcb_error( ic, "OAuth error: %s", info->http->status_string ); + imcb_error( ic, "OAuth error: %s", twitter_parse_error( info->http ) ); imc_logout( ic, TRUE ); return FALSE; } @@ -166,7 +166,7 @@ static gboolean twitter_oauth_callback( struct oauth_info *info ) { if( info->token == NULL || info->token_secret == NULL ) { - imcb_error( ic, "OAuth error: %s", info->http->status_string ); + imcb_error( ic, "OAuth error: %s", twitter_parse_error( info->http ) ); imc_logout( ic, TRUE ); return FALSE; } |