Re: [PATCH] Expense conduit
- From: Owen Taylor <otaylor redhat com>
- To: Eskil Heyn Olsen <deity dbc dk>
- Cc: Patrick Decowski <decowski mit edu>, gnome-pilot-list gnome org, recipient list not shown: ;
- Subject: Re: [PATCH] Expense conduit
- Date: 09 Nov 1999 20:16:34 -0500
Eskil Heyn Olsen <deity@dbc.dk> writes:
> > - do we just use g_error and g_warning if errors occur inside
> > the conduit while syncing? shouldn't there be a more uniform
> > dialog box, so that it is absolutely clear that the error has
> > to do with gnome-pilot?
>
> The error dialog (I presume you mean the sigsegv error box) is a
> GnomeThing, not gpilotd. You should not use g_error unlesss extremely
> absolutely muymuy important. Muymuy important is eg. mallocing 10 bytes
> and failing.
g_error() (since it calls abort() and thus dumps core) should not be
be used for any error case that doesn't reflect a bug in your
program. For any predictable error case, you should put up a nice
GnomeMessageBox. For errors which don't reflect a user handleable
situation, but for which you don't want to dump core.
g_warning(); exit(1) may be appropriate.
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]