[GRASS-SVN] r73356 - grass/trunk/lib/init

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Sep 16 19:18:44 PDT 2018


Author: wenzeslaus
Date: 2018-09-16 19:18:44 -0700 (Sun, 16 Sep 2018)
New Revision: 73356

Modified:
   grass/trunk/lib/init/grass.py
Log:
init: improve message when d/l/m not set (see #2681)

This state is not likely to happen (not sure when it happens),
but giving a general message with general terminology and suggestion
seems like the right thing to do.


Modified: grass/trunk/lib/init/grass.py
===================================================================
--- grass/trunk/lib/init/grass.py	2018-09-17 01:52:46 UTC (rev 73355)
+++ grass/trunk/lib/init/grass.py	2018-09-17 02:18:44 UTC (rev 73356)
@@ -1075,8 +1075,9 @@
         kv['MAPSET'] = mapset
         write_gisrc(kv, gisrc)
     else:
-        fatal(_("GISDBASE, LOCATION_NAME and MAPSET variables not set properly.\n"
-                "Interactive startup needed."))
+        fatal(_("GRASS GIS database directory, location and mapset"
+                " not set properly."
+                " Use GUI or command line to set them."))
 
 
 def set_mapset_interactive(grass_gui):



More information about the grass-commit mailing list