[GRASS-SVN] r37771 - grass/branches/releasebranch_6_4/ps/ps.map

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jun 6 21:57:43 EDT 2009


Author: hamish
Date: 2009-06-06 21:57:43 -0400 (Sat, 06 Jun 2009)
New Revision: 37771

Modified:
   grass/branches/releasebranch_6_4/ps/ps.map/r_plt.c
Log:
exit with error if eps file isn't found (merge from devbr6)

Modified: grass/branches/releasebranch_6_4/ps/ps.map/r_plt.c
===================================================================
--- grass/branches/releasebranch_6_4/ps/ps.map/r_plt.c	2009-06-07 01:56:59 UTC (rev 37770)
+++ grass/branches/releasebranch_6_4/ps/ps.map/r_plt.c	2009-06-07 01:57:43 UTC (rev 37771)
@@ -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