[GRASS5] Re: [bug #2996] (grass) red (X) in GUI on fatal error doesn't appear on --o
Radim Blazek
radim.blazek at gmail.com
Thu Sep 1 03:25:16 EDT 2005
On 8/31/05, Markus Neteler via RT <grass-bugs at intevation.de> wrote:
> > When a Tcl/Tk GUI run module exits with an error becasue the output file
>
> > already exists (need to use --o), it doesn't have a red (X) icon before the
>
> > error message. Why not?
>
> Ciao Radim,
>
> could you fix that? Not sure what's missing...
>
> Thanks
>
> Markus
The problem is that G_fatal_error() must be used to get an error message
formated for GUI. Unfortunately G_fatal_error() calls exit() and G_parser()
must not exit. G_set_error_routine() does not help because in that case
G_fatal_error() prints nothing.
Radim
More information about the grass-dev
mailing list