[GRASS-SVN] r45510 - grass/branches/releasebranch_6_4/lib/init

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Mar 1 12:33:54 EST 2011


Author: marisn
Date: 2011-03-01 09:33:54 -0800 (Tue, 01 Mar 2011)
New Revision: 45510

Modified:
   grass/branches/releasebranch_6_4/lib/init/gis_set.tcl
Log:
Make tcl/tk startup screen more robust to GISRC problems. (merge r45509 from devel6)

Modified: grass/branches/releasebranch_6_4/lib/init/gis_set.tcl
===================================================================
--- grass/branches/releasebranch_6_4/lib/init/gis_set.tcl	2011-03-01 17:26:48 UTC (rev 45509)
+++ grass/branches/releasebranch_6_4/lib/init/gis_set.tcl	2011-03-01 17:33:54 UTC (rev 45510)
@@ -930,5 +930,12 @@
 
 if { [searchGISRC $gisrc_name] } {
    gisSetWindow
+} else {
+    # Something has gone terribly wrong
+    # GISRC file is missing or corrupted
+    DialogGen .wrnDlg [G_msg "ERROR: unable to read GISRC"] warning \
+          [format [G_msg "Something went wrong while processing GISRC file named \"%s\".\nIt's a fatal error. GRASS will not start till issue with GISRC file is fixed."] $env(GISRC) ]\
+          0 OK;
+    exit 2
 }
 



More information about the grass-commit mailing list