diff options
author | Cedric Borgese <cedric.borgese@gmail.com> | 2005-09-27 14:20:09 +0000 |
---|---|---|
committer | Cedric Borgese <cedric.borgese@gmail.com> | 2005-09-27 14:20:09 +0000 |
commit | 93e630921e1687572226b81fdb1444650e6a8358 (patch) | |
tree | af596659acc4f36bb6a4074963b53d52995ea37b /src | |
parent | 8225942307f8290e5941cdeaff5c7b212f978390 (diff) | |
download | mana-client-93e630921e1687572226b81fdb1444650e6a8358.tar.gz mana-client-93e630921e1687572226b81fdb1444650e6a8358.tar.bz2 mana-client-93e630921e1687572226b81fdb1444650e6a8358.tar.xz mana-client-93e630921e1687572226b81fdb1444650e6a8358.zip |
Provide a little more info on connection error.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/updatewindow.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/gui/updatewindow.cpp b/src/gui/updatewindow.cpp index 9e6a1b7b..5b820eef 100644 --- a/src/gui/updatewindow.cpp +++ b/src/gui/updatewindow.cpp @@ -275,8 +275,17 @@ int UpdaterWindow::downloadThread(void *ptr) if ((res = curl_easy_perform(curl)) != 0) { uw->mDownloadStatus = UPDATE_ERROR; - std::cerr << "curl error " << res << " : " << uw->mCurlError + switch (res) + { + case CURLE_COULDNT_CONNECT: // give more debug info on that error + std::cerr << "curl error " << res << " : " << uw->mCurlError << " " << url.c_str() + << std::endl; + break; + + default: + std::cerr << "curl error " << res << " : " << uw->mCurlError << " host: " << url.c_str() << std::endl; + } } curl_easy_cleanup(curl); |