[GRASS-SVN] r56976 - grass-addons/grass6/raster/r.in.wms2
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jul 2 04:53:39 PDT 2013
Author: hamish
Date: 2013-07-02 04:53:39 -0700 (Tue, 02 Jul 2013)
New Revision: 56976
Modified:
grass-addons/grass6/raster/r.in.wms2/wms_drv.py
Log:
show http error code
Modified: grass-addons/grass6/raster/r.in.wms2/wms_drv.py
===================================================================
--- grass-addons/grass6/raster/r.in.wms2/wms_drv.py 2013-07-02 11:50:48 UTC (rev 56975)
+++ grass-addons/grass6/raster/r.in.wms2/wms_drv.py 2013-07-02 11:53:39 UTC (rev 56976)
@@ -88,7 +88,7 @@
if HTTPError == type(e) and e.code == 401:
grass.fatal(_("Authorization failed to '%s' when fetching data.") % self.params['url'])
else:
- grass.fatal(_("Unable to fetch data from: '%s'") % self.params['url'])
+ grass.fatal(_("Error %d. Unable to fetch data from: '%s'") % (e.code, self.params['url']))
temp_tile = self._tempfile()
More information about the grass-commit
mailing list