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

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jun 29 16:02:05 PDT 2016


Author: neteler
Date: 2016-06-29 16:02:05 -0700 (Wed, 29 Jun 2016)
New Revision: 68795

Modified:
   grass/trunk/lib/init/grass.py
Log:
grass startup: added helptext.html manual page URL to startup error messages (trac #2683)

Modified: grass/trunk/lib/init/grass.py
===================================================================
--- grass/trunk/lib/init/grass.py	2016-06-29 17:32:55 UTC (rev 68794)
+++ grass/trunk/lib/init/grass.py	2016-06-29 23:02:05 UTC (rev 68795)
@@ -975,7 +975,9 @@
                 " report this error to the GRASS developers.\n"
                 "On systems with package manager, make sure you have the right"
                 " GUI package, probably named grass-gui, installed.\n"
-                "To run GRASS GIS in text mode use the -text flag."))
+                "To run GRASS GIS in text mode use the -text flag.\n"
+                "See also: https://grass.osgeo.org/{cmd_name}/manuals/helptext.html").format(
+                    cmd_name=cmd_name))
     elif ret == 5:  # defined in gui/wxpython/gis_set.py
         # User wants to exit from GRASS
         message(_("Exit was requested in GUI.\nGRASS GIS will not start. Bye."))
@@ -1829,7 +1831,8 @@
                     " - Launch GRASS GIS directly with path to "
                     "the location/mapset as an argument"
                     " (`{cmd_name} /path/to/location/mapset`)\n"
-                    " - Create manually the GISRC file ({gisrcrc})").format(
+                    " - Create manually the GISRC file ({gisrcrc})\n"
+                    "See also: https://grass.osgeo.org/{cmd_name}/manuals/helptext.html").format(
                         cmd_name=cmd_name, gisrcrc=gisrcrc))
         create_initial_gisrc(gisrc)
     else:



More information about the grass-commit mailing list