Browse Source

init: improve message when d/l/m not set (see https://trac.osgeo.org/grass/ticket/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.


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@73356 15284696-431f-4ddb-bdfa-cd5b030d7da7
Vaclav Petras 6 years ago
parent
commit
2cf4e7b3aa
1 changed files with 3 additions and 2 deletions
  1. 3 2
      lib/init/grass.py

+ 3 - 2
lib/init/grass.py

@@ -1075,8 +1075,9 @@ def set_mapset(gisrc, arg=None, geofile=None, create_new=False,
         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):