Mercurial > pidgin
comparison src/proxy.c @ 8917:189ee7356c59
[gaim-migrate @ 9687]
Hopefully give a more verbose proxy error message.
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Tue, 11 May 2004 19:27:23 +0000 |
| parents | ae3f33870550 |
| children | 52fba1dafe0e |
comparison
equal
deleted
inserted
replaced
| 8916:2c33a94a6ac2 | 8917:189ee7356c59 |
|---|---|
| 847 gaim_debug(GAIM_DEBUG_ERROR, "proxy", | 847 gaim_debug(GAIM_DEBUG_ERROR, "proxy", |
| 848 "Proxy server replied with:\n%s\n", p); | 848 "Proxy server replied with:\n%s\n", p); |
| 849 close(source); | 849 close(source); |
| 850 source = -1; | 850 source = -1; |
| 851 | 851 |
| 852 if ( status == 403 /* Forbidden */ ) | 852 if ( status == 403 /* Forbidden */ ) { |
| 853 gaim_connection_error(phb->account->gc, _("Access denied: proxy server forbids port 80 tunnelling.")); | 853 gchar *msg = g_strdup_printf(_("Access denied: proxy server forbids port %d tunnelling."), phb->port); |
| 854 else { | 854 gaim_connection_error(phb->account->gc, msg); |
| 855 g_free(msg); | |
| 856 } else { | |
| 855 char *msg = g_strdup_printf(_("Proxy connection error %d"), status); | 857 char *msg = g_strdup_printf(_("Proxy connection error %d"), status); |
| 856 gaim_connection_error(phb->account->gc, msg); | 858 gaim_connection_error(phb->account->gc, msg); |
| 857 g_free(msg); | 859 g_free(msg); |
| 858 } | 860 } |
| 859 | 861 |
