diff options
author | dequis <dx@dxzone.com.ar> | 2015-03-07 01:10:59 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2015-03-10 04:33:54 -0300 |
commit | 732061027ec0d83db224e81df0fd1b3905a3cdec (patch) | |
tree | cc67cd6db47521fc5188b3eecd0b10f7a7cc0eca /protocols/twitter/twitter_lib.c | |
parent | 8b91a1f60f5d27c91d5a9939236e6078a090ef92 (diff) |
Various user experience/error reporting improvements
- Show version as part of the initial message of &bitlbee
- Use g_strerror() to show actual errors when saving xml configs
- Only show "The nick is (probably) not registered" for ENOENT, use
g_strerror() for the rest of OS errors when loading xml configs
- Show "Protocol not found: <name>" when find_protocol() returns null,
useful when the user uninstalls a plugin accidentally.
- Suggest the user to check the system clock when getting error 401 from
the twitter stream (other REST endpoints show a better error message)
Diffstat (limited to 'protocols/twitter/twitter_lib.c')
-rw-r--r-- | protocols/twitter/twitter_lib.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/twitter/twitter_lib.c b/protocols/twitter/twitter_lib.c index 05932bef..2da38337 100644 --- a/protocols/twitter/twitter_lib.c +++ b/protocols/twitter/twitter_lib.c @@ -861,6 +861,9 @@ static void twitter_http_stream(struct http_request *req) } imcb_error(ic, "Stream closed (%s)", req->status_string); + if (req->status_code == 401) { + imcb_error(ic, "Check your system clock."); + } imc_logout(ic, TRUE); return; } |