Explorar o código

r.in.wms: be more specific when fetching capabilities fails

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@54986 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa %!s(int64=12) %!d(string=hai) anos
pai
achega
b2683e0efe
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      scripts/r.in.wms/wms_base.py

+ 1 - 1
scripts/r.in.wms/wms_base.py

@@ -196,7 +196,7 @@ class WMSBase:
             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