[GRASS-SVN] r73730 - grass/branches/releasebranch_7_6/lib/init

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Nov 30 03:50:23 PST 2018


Author: neteler
Date: 2018-11-30 03:50:23 -0800 (Fri, 30 Nov 2018)
New Revision: 73730

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

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/branches/releasebranch_7_6/lib/init/grass.py
===================================================================
--- grass/branches/releasebranch_7_6/lib/init/grass.py	2018-11-30 11:44:28 UTC (rev 73729)
+++ grass/branches/releasebranch_7_6/lib/init/grass.py	2018-11-30 11:50:23 UTC (rev 73730)
@@ -1041,8 +1041,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