[GRASS-dev] Re: single-click zoom doesn't preserve aspect ratio
Hamish
hamish_nospam at yahoo.com
Tue Nov 7 23:50:18 EST 2006
Michael Barton wrote:
>
> There are probably ways to trap errors more gracefully. The best way is not
> to have them of course, but it would be good if the program continued even
> if it encountered one. I can't put a "catch" command on everything in every
> script (this is one way to trap), but it would be good to know which kinds
> of errors create this kind of freeze (not all do). As I encounter them, I
> try to trap them, but I'm not sure what to look for to do this proactively.
I would suggest this one as a candidate for catching:
http://article.gmane.org/gmane.comp.gis.grass.user/16199
> GRASS 6.2.0 (Arctic):~ > gis.m
> GRASS 6.2.0 (Arctic):~ > Error in startup script: can't read
> "parts(n)": no such variable
> while executing
> "MapCanvas::zoom_new $mon $parts(n) $parts(s) $parts(e) $parts(w)
> $parts(nsres) $parts(ewres)"
> (procedure "MapCanvas::zoom_gregion" line 11)
> invoked from within
> "MapCanvas::zoom_gregion $mon"
> (procedure "MapCanvas::create" line 40)
.. and then reword the error to something meaninful ..
Hamish
More information about the grass-dev
mailing list