[GRASS-SVN] r37770 - grass/trunk/ps/ps.map
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Jun 6 21:56:59 EDT 2009
Author: hamish
Date: 2009-06-06 21:56:59 -0400 (Sat, 06 Jun 2009)
New Revision: 37770
Modified:
grass/trunk/ps/ps.map/r_plt.c
Log:
exit with error if eps file isn't found (merge from devbr6)
Modified: grass/trunk/ps/ps.map/r_plt.c
===================================================================
--- grass/trunk/ps/ps.map/r_plt.c 2009-06-07 01:55:53 UTC (rev 37769)
+++ grass/trunk/ps/ps.map/r_plt.c 2009-06-07 01:56:59 UTC (rev 37770)
@@ -142,10 +142,9 @@
G_chop(data);
eps = G_store(data);
/* test if file is accessible */
- if ((fp = fopen(eps, "r")) == NULL) {
- fprintf(stderr, "Can't open eps file <%s>\n", eps);
- return (0);
- }
+ if ((fp = fopen(eps, "r")) == NULL)
+ error(key, data, "Can't open eps file");
+
have_eps = 1;
fclose(fp);
continue;
More information about the grass-commit
mailing list