[GRASS-SVN] r37297 - grass/branches/develbranch_6/lib/init

svn_grass at osgeo.org svn_grass at osgeo.org
Wed May 20 01:01:36 EDT 2009


Author: hamish
Date: 2009-05-20 01:01:36 -0400 (Wed, 20 May 2009)
New Revision: 37297

Modified:
   grass/branches/develbranch_6/lib/init/grass-run.bat
Log:
catch OS level errors

Modified: grass/branches/develbranch_6/lib/init/grass-run.bat
===================================================================
--- grass/branches/develbranch_6/lib/init/grass-run.bat	2009-05-20 04:49:29 UTC (rev 37296)
+++ grass/branches/develbranch_6/lib/init/grass-run.bat	2009-05-20 05:01:36 UTC (rev 37297)
@@ -10,16 +10,19 @@
 rem Run command
 "%*"
 
+if not %errorlevel% == 0 goto error
+
 title GRASS: %1 Done.
-if %errorlevel% == 1 goto error
-
 echo.
 echo %1 complete.
 pause
+
 :end
 exit %errorlevel%
 
 :error
+title GRASS: %1 Done. (error %errorlevel%)
+echo.
 echo -----
 echo ERROR: %1 exited abnormally.
 echo -----



More information about the grass-commit mailing list