[GRASS-SVN] r43502 - grass/branches/releasebranch_6_4/scripts/v.dissolve

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Sep 18 10:51:26 EDT 2010


Author: neteler
Date: 2010-09-18 14:51:26 +0000 (Sat, 18 Sep 2010)
New Revision: 43502

Modified:
   grass/branches/releasebranch_6_4/scripts/v.dissolve/v.dissolve
Log:
backport: v.dissolve standardize messages

Modified: grass/branches/releasebranch_6_4/scripts/v.dissolve/v.dissolve
===================================================================
--- grass/branches/releasebranch_6_4/scripts/v.dissolve/v.dissolve	2010-09-18 14:50:11 UTC (rev 43501)
+++ grass/branches/releasebranch_6_4/scripts/v.dissolve/v.dissolve	2010-09-18 14:51:26 UTC (rev 43502)
@@ -87,7 +87,7 @@
 # does map exist?
 eval `g.findfile element=vector file=$GIS_OPT_INPUT`
 if [ ! "$file" ] ; then
-   g.message -e "Vector map '$GIS_OPT_INPUT' not found in mapset search path"
+   g.message -e "Vector map <$GIS_OPT_INPUT> not found"
    exit 1
 fi
 
@@ -104,7 +104,7 @@
 
    table=`v.db.connect $GIS_OPT_INPUT -g fs=";" | grep -w "^$GIS_OPT_LAYER" | awk -F ";" '{print $2}'`
    if [ -z "$table" ] ; then
-      g.message -e 'There is no table connected to this map!'
+      g.message -e "Database connection not defined for layer $GIS_OPT_LAYER"
       exit 1
    fi
    v.reclass input="$GIS_OPT_INPUT" output="$TMPMAP" layer="$GIS_OPT_LAYER" \



More information about the grass-commit mailing list