[GRASS-dev] Re: [GRASS-user] GRASS6.3 on Windows
Glynn Clements
glynn at gclements.plus.com
Sun Sep 2 01:04:29 EDT 2007
Michael Barton wrote:
> >>> Update /gui/tcltk/gis.m/runandoutput.tcl from the cvs and see what happens.
> >>> I just made a change, suggested by Glynn, that fixed similar symptoms for
> >>> with with another command (v.what). v.what was kicking out extraneous
> >>> information when it launched and creating an identical dialog. I've
> >>> separated out stderr from the normal stdout information when commands are
> >>> launched from the menu and it works fine now.
> >>
> >> As far as I can see there in that latest change you're redirecting stderr
> >> to /dev/null. So now there will be no output for the catch command to
> >> catch in case of an error - so printing out the error message is
> >> pointless.
> >
> > Right.
> >
>
> Maybe this is not what you mean, but I intentionally generated an error to
> test this by adding a typo to the menu command to call v.what (made it
> "v.whats"). The error message came back as 'v.whats not found'.
>
> So it looks like this will return at least some error messages.
That error is generated by Tcl itself. Errors generated by the command
(or the loader, e.g. "unable to load shared library") will still be
discarded. AFAICT, the only solution to that would be to redirect
stderr to a file, then include its contents in the event of an error.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list