[GRASS-SVN] r64096 - grass/branches/releasebranch_7_0/vector/v.out.ascii
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jan 12 06:14:01 PST 2015
Author: mmetz
Date: 2015-01-12 06:14:01 -0800 (Mon, 12 Jan 2015)
New Revision: 64096
Modified:
grass/branches/releasebranch_7_0/vector/v.out.ascii/main.c
Log:
v.out.ascii: return-type specific warning
Modified: grass/branches/releasebranch_7_0/vector/v.out.ascii/main.c
===================================================================
--- grass/branches/releasebranch_7_0/vector/v.out.ascii/main.c 2015-01-12 14:11:24 UTC (rev 64095)
+++ grass/branches/releasebranch_7_0/vector/v.out.ascii/main.c 2015-01-12 14:14:01 UTC (rev 64096)
@@ -151,7 +151,7 @@
region, type, field, clist, (const char *)where,
(const char **)columns, header);
- if (ret < 1) {
+ if (ret == 0) {
if (format == GV_ASCII_FORMAT_POINT) {
G_warning(_("No points found, nothing to be exported"));
}
@@ -159,6 +159,9 @@
G_warning(_("No features found, nothing to be exported"));
}
}
+ else if (ret < 0) {
+ G_warning(_("An error occured, nothing to be exported"));
+ }
if (ascii != NULL)
fclose(ascii);
More information about the grass-commit
mailing list