I've gone through and wrapped in catch statements all GRASS commands worth wrapping (and probably some not worth it).
I also did a bit of cleanup to the help routines that I ran across. I also added Carlos' get info buttons to the raster and vector layer panels. These are quite handy. There is a bug in v.what such that it kicks out the wrong stuff with its GUI interface description. Only shows up from the GUI, but it would be nice if it could be fixed. Anything else GUI-wise broken and fixable that anyone has noticed? Michael On 8/22/07 4:22 AM, "Paul Kelly" <[EMAIL PROTECTED]> wrote: >>> A couple of side-notes though: >>> 1) In general the GUI is terrible at catching and reporting errors from >>> modules it calls in the background and this leads to cryptic error >>> messages or nothing happening all over the place. IMHO it is a really >>> pervasive problem that definitely needs fixed in the next GUI. Hopefully >>> it already is there (ISTR discussions about every call to a GRASS module >>> going through some other function where the error trapping could >>> presumably be added, to avoid code repetition). >> >> Actually, error trapping is pretty good in the GUI now, except for NVIZ (but >> which doesn't run much in the way of GRASS commands anyway). There are traps > > Well maybe I was being a bit overly dramatic, but running > grep "exec " *.tcl | grep -v catch | wc -l > in the gis.m directory still reveals 72 lines where exec is used without a > corresponding catch. Not very scientific and perhaps not important in most > cases - but if a single command (be it a GRASS module or system command) > is not available or not working for some reason it could really make the > difference between somebody tearing their hair out for a day or finding > the source of a problem quickly. > __________________________________________ Michael Barton, Professor of Anthropology Director of Graduate Studies School of Human Evolution & Social Change Center for Social Dynamics & Complexity Arizona State University phone: 480-965-6213 fax: 480-965-7671 www: http://www.public.asu.edu/~cmbarton _______________________________________________ grass-dev mailing list grass-dev@grass.itc.it http://grass.itc.it/mailman/listinfo/grass-dev