From fd19769f410fe114451ea1329f676ed28c555b2f Mon Sep 17 00:00:00 2001 From: Szymon Tokarz Date: Mon, 31 Dec 2012 13:22:28 +0000 Subject: Gadu-Gadu protocol: - show error popup when file io function returns an error code hope to explain avatar problems git-svn-id: http://svn.miranda-ng.org/main/trunk@2895 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Gadu-Gadu/src/userutils.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'protocols/Gadu-Gadu/src/userutils.cpp') diff --git a/protocols/Gadu-Gadu/src/userutils.cpp b/protocols/Gadu-Gadu/src/userutils.cpp index ff5e21088b..e92188fe59 100644 --- a/protocols/Gadu-Gadu/src/userutils.cpp +++ b/protocols/Gadu-Gadu/src/userutils.cpp @@ -50,7 +50,7 @@ void *gg_doregister(GGPROTO *gg, char *newPass, char *newEmail) gg->m_tszUserName, MB_OK | MB_ICONSTOP ); - gg->netlog("gg_doregister(): Cannot register because of \"%s\".", strerror(errno)); + gg->netlog("gg_doregister(): Cannot register. errno=%d: %s", errno, strerror(errno)); } else { @@ -97,7 +97,7 @@ void *gg_dounregister(GGPROTO *gg, uin_t uin, char *password) (h && !s) ? http_error_string(h ? h->error : 0) : (s ? TranslateT("Bad number or password") : _tcserror(errno))); MessageBox(NULL, error, gg->m_tszUserName, MB_OK | MB_ICONSTOP); - gg->netlog("gg_dounregister(): Cannot remove account because of \"%s\".", strerror(errno)); + gg->netlog("gg_dounregister(): Cannot remove account. errno=%d: %s", errno, strerror(errno)); } else { @@ -149,7 +149,7 @@ void *gg_dochpass(GGPROTO *gg, uin_t uin, char *password, char *newPass) (h && !s) ? http_error_string(h ? h->error : 0) : (s ? TranslateT("Invalid data entered") : _tcserror(errno))); MessageBox(NULL, error, gg->m_tszUserName, MB_OK | MB_ICONSTOP); - gg->netlog("gg_dochpass(): Cannot change password because of \"%s\".", strerror(errno)); + gg->netlog("gg_dochpass(): Cannot change password. errno=%d: %s", errno, strerror(errno)); } else { @@ -191,7 +191,7 @@ void *gg_dochemail(GGPROTO *gg, uin_t uin, char *password, char *email, char *ne mir_sntprintf(error, SIZEOF(error), TranslateT("Your e-mail cannot be changed because of error:\n\t%s"), (h && !s) ? http_error_string(h ? h->error : 0) : (s ? TranslateT("Bad old e-mail or password") : _tcserror(errno))); MessageBox(NULL, error, gg->m_tszUserName, MB_OK | MB_ICONSTOP); - gg->netlog("gg_dochemail(): Cannot change e-mail because of \"%s\".", strerror(errno)); + gg->netlog("gg_dochemail(): Cannot change e-mail. errno=%d: %s", errno, strerror(errno)); } else { -- cgit v1.2.3