[GRASS-SVN] r33979 - grass-addons/raster/r.sun_horizon/r.sun2

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Oct 22 11:05:50 EDT 2008


Author: neteler
Date: 2008-10-22 11:05:50 -0400 (Wed, 22 Oct 2008)
New Revision: 33979

Modified:
   grass-addons/raster/r.sun_horizon/r.sun2/main.c
Log:
Exit with error if Horizon file missing

Modified: grass-addons/raster/r.sun_horizon/r.sun2/main.c
===================================================================
--- grass-addons/raster/r.sun_horizon/r.sun2/main.c	2008-10-22 14:18:09 UTC (rev 33978)
+++ grass-addons/raster/r.sun_horizon/r.sun2/main.c	2008-10-22 15:05:50 UTC (rev 33979)
@@ -955,7 +955,7 @@
 		horizonbuf[i] = G_allocate_f_raster_buf();
 	    sprintf(shad_filename, formatString, horizon, i);
 	    if ((mapset = G_find_cell(shad_filename, "")) == NULL)
-		printf("Horizon file no. %d not found\n", i);
+		G_fatal_error(_("Horizon file no. %d <%s> not found"), i, shad_filename);
 
 	    fd_shad[i] = G_open_cell_old(shad_filename, mapset);
 	}



More information about the grass-commit mailing list