Переглянути джерело

grass startup: added helptext.html manual page URL to startup error messages (trac https://trac.osgeo.org/grass/ticket/2683)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@68795 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 8 роки тому
батько
коміт
8f1eade976
1 змінених файлів з 5 додано та 2 видалено
  1. 5 2
      lib/init/grass.py

+ 5 - 2
lib/init/grass.py

@@ -975,7 +975,9 @@ def gui_startup(grass_gui):
                 " 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 @@ def main():
                     " - 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: