From 732061027ec0d83db224e81df0fd1b3905a3cdec Mon Sep 17 00:00:00 2001 From: dequis Date: Sat, 7 Mar 2015 01:10:59 -0300 Subject: 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: " 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) --- protocols/twitter/twitter_lib.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'protocols') 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; } -- cgit v1.2.3