[GRASS-SVN] r70313 - grass-addons/grass7/raster/r.modis/libmodis

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jan 9 02:52:46 PST 2017


Author: lucadelu
Date: 2017-01-09 02:52:46 -0800 (Mon, 09 Jan 2017)
New Revision: 70313

Modified:
   grass-addons/grass7/raster/r.modis/libmodis/rmodislib.py
Log:
r.modis: improved error messages

Modified: grass-addons/grass7/raster/r.modis/libmodis/rmodislib.py
===================================================================
--- grass-addons/grass7/raster/r.modis/libmodis/rmodislib.py	2017-01-09 10:51:39 UTC (rev 70312)
+++ grass-addons/grass7/raster/r.modis/libmodis/rmodislib.py	2017-01-09 10:52:46 UTC (rev 70313)
@@ -260,9 +260,9 @@
         elif self.products_swath.keys().count(self.prod) == 1:
             return self.products_swath[self.prod]
         else:
-            grass.fatal(_("The code insert is not supported yet. Consider "
-                          "to ask on the grass-dev mailing list for future "
-                          "support"))
+            grass.fatal(_("The MODIS product inserted is not supported yet. "
+                          "Consider to ask on the grass-dev mailing list "
+                          "for future support"))
 
     def fromcode(self, code):
         import string
@@ -272,8 +272,9 @@
         for k, v in self.products_swath.iteritems():
             if string.find(v['prod'], code) != -1:
                 return self.products_swath[k]
-        grass.fatal(_("The code insert is not supported yet. Consider to "
-                      "ask on the grass-dev mailing list for future support"))
+        grass.fatal(_("The MODIS product inserted is not supported yet. "
+                      "Consider to ask on the grass-dev mailing list "
+                      "for future support"))
 
     def color(self, code=None):
         if code:



More information about the grass-commit mailing list