[GRASS-CVS] carlos: grass6/raster/r.cats main.c,2.12,2.13

grass at intevation.de grass at intevation.de
Wed Nov 28 13:25:58 EST 2007


Author: carlos

Update of /grassrepository/grass6/raster/r.cats
In directory doto:/tmp/cvs-serv1162/r.cats

Modified Files:
	main.c 
Log Message:
Message standardization


Index: main.c
===================================================================
RCS file: /grassrepository/grass6/raster/r.cats/main.c,v
retrieving revision 2.12
retrieving revision 2.13
diff -u -d -r2.12 -r2.13
--- main.c	10 Oct 2007 07:49:20 -0000	2.12
+++ main.c	28 Nov 2007 18:25:56 -0000	2.13
@@ -141,13 +141,13 @@
 		G_fatal_error(_("Raster map <%s> not found"), parm.raster->answer);
 
 	    if((fd = G_open_cell_old(name, mapset)) < 0)
-		G_fatal_error(_("Cannot open raster map <%s>"), name);
+		G_fatal_error(_("Unable to open raster map <%s>"), name);
 
 	    G_init_raster_cats("", &cats);
 
 	    if (0 > G_read_cats(parm.raster->answer, cmapset, &cats))
-		G_fatal_error(_("Cannot read category file of raster map <%s>"),
-		    parm.raster->answer);
+		G_fatal_error(_("Unable to read category file of raster map <%s@%s>"),
+		    parm.raster->answer, cmapset);
 
 	    if (G_write_cats(name, &cats) >= 0)
 		G_message(_("Category table for <%s> set from <%s>"), name,
@@ -202,7 +202,7 @@
 	    G_init_raster_cats("", &cats);
 
 	    if (0 > G_read_cats(name, G_mapset(), &cats))
-		G_warning(_("Cannot read category file of raster map <%s>"), name);
+		G_warning(_("Unable to read category file of raster map <%s@%s>"), name, G_mapset());
 
 	    if(parm.fmt_str->answer) {
 		fmt_str = G_malloc(strlen(parm.fmt_str->answer) > strlen(cats.fmt)




More information about the grass-commit mailing list