Author: pere
Date: 2012-02-27 19:32:25 +0000 (Mon, 27 Feb 2012)
New Revision: 13326

Modified:
   software/ui/src/URLFetcher.cpp
   software/ui/src/pkgbrowser.cpp
Log:
Improve error message when URLFetcher fail.

Modified: software/ui/src/URLFetcher.cpp
===================================================================
--- software/ui/src/URLFetcher.cpp      2012-02-27 19:21:58 UTC (rev 13325)
+++ software/ui/src/URLFetcher.cpp      2012-02-27 19:32:25 UTC (rev 13326)
@@ -34,11 +34,11 @@
                fclose(output);
                if (0 != res)
                {
-                       throw std::runtime_error(std::string("failed to fetch 
screen shot"));
+                       throw std::runtime_error(std::string("failed to fetch 
") + url);
                }
                return path;
        }
-       throw std::runtime_error("unable to fetch screen shot");
+       throw std::runtime_error(std::string("unable to fetch ") + url);
 }
 
 URLFetcher::~URLFetcher()

Modified: software/ui/src/pkgbrowser.cpp
===================================================================
--- software/ui/src/pkgbrowser.cpp      2012-02-27 19:21:58 UTC (rev 13325)
+++ software/ui/src/pkgbrowser.cpp      2012-02-27 19:32:25 UTC (rev 13326)
@@ -192,6 +192,7 @@
          // Currently only fetching using HTTP is implemented
                URLFetcher fetcher;
                std::string url("http://screenshots.debian.net/screenshot/";);
+               //std::string url("http://screenshots.debian.net/thumbnail/";);
                url += packagename;
                //cout << "fetching " << url << endl;
                try {


_______________________________________________
Pkg-games-commits mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

Reply via email to