[GRASS-SVN] r54986 - grass/trunk/scripts/r.in.wms

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Feb 8 06:44:05 PST 2013


Author: martinl
Date: 2013-02-08 06:44:05 -0800 (Fri, 08 Feb 2013)
New Revision: 54986

Modified:
   grass/trunk/scripts/r.in.wms/wms_base.py
Log:
r.in.wms: be more specific when fetching capabilities fails


Modified: grass/trunk/scripts/r.in.wms/wms_base.py
===================================================================
--- grass/trunk/scripts/r.in.wms/wms_base.py	2013-02-08 14:34:29 UTC (rev 54985)
+++ grass/trunk/scripts/r.in.wms/wms_base.py	2013-02-08 14:44:05 UTC (rev 54986)
@@ -196,7 +196,7 @@
             if urllib2.HTTPError == type(e) and e.code == 401:
                 grass.fatal(_("Authorization failed to <%s> when fetching capabilities") % options['url'])
             else:
-                msg = _("Unable to fetch capabilities from <%s>") % (options['url'])
+                msg = _("Unable to fetch capabilities from <%s>: %s") % (options['url'], e)
                 
                 if hasattr(e, 'reason'):
                     msg += _("\nReason: ") + e.reason



More information about the grass-commit mailing list