r19680 - gnucash/trunk/src/backend/sql - Bug 632166: A Better fix that doesn't break string freeze or introduce a Gtk GUI dependency into the backend.
John Ralls
jralls at ceridwen.us
Tue Oct 19 16:19:41 EDT 2010
On Oct 19, 2010, at 11:40 AM, Phil Longstaff wrote:
> Sorry I've been busy or I would have jumped in sooner. When I ran into the
> problem of reporting backend issues, I used the following..
>
> 1) backend would call qof_backend_set_error() with an error code
> 2) qof_instance_commit_edit() would call the on_err function (e.g. in Account.c)
> 3) the on_err function would call gnc_engine_signal_commit_error() with the qof
> error code
> 4) gnc_engine_signal_commit_error() would call a registered error handler
> function registered using gnc_engine_add_commit_error_callback().
>
> This would allow the UI to register an error handler. Unfortunately, all that
> is passed to the error handler is the callback data value and the qof error
> code. This needs to be expanded to include more information.
>
Phil,
Thanks. I discovered that on my own about an hour ahead of your letter.
Yes, the qof_backend_error mechanism needs to be expanded, and I've ammended https://bugzilla.gnome.org/show_bug.cgi?id=632558 to reflect that. Something for after 2.4 ships.
Regards,
John Ralls
More information about the gnucash-devel
mailing list