[GRASS-SVN] r37769 - grass/branches/develbranch_6/ps/ps.map

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jun 6 21:55:53 EDT 2009


Author: hamish
Date: 2009-06-06 21:55:53 -0400 (Sat, 06 Jun 2009)
New Revision: 37769

Modified:
   grass/branches/develbranch_6/ps/ps.map/r_plt.c
Log:
exit with error if eps file isn't found

Modified: grass/branches/develbranch_6/ps/ps.map/r_plt.c
===================================================================
--- grass/branches/develbranch_6/ps/ps.map/r_plt.c	2009-06-07 01:40:05 UTC (rev 37768)
+++ grass/branches/develbranch_6/ps/ps.map/r_plt.c	2009-06-07 01:55:53 UTC (rev 37769)
@@ -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