r19808 - gnucash/trunk/src/optional/python-bindings - Bug #634812: Improve backend error reporting for Session begin
Christian Stimming
cstim at code.gnucash.org
Sun Nov 14 08:30:16 EST 2010
Author: cstim
Date: 2010-11-14 08:30:16 -0500 (Sun, 14 Nov 2010)
New Revision: 19808
Trac: http://svn.gnucash.org/trac/changeset/19808
Modified:
gnucash/trunk/src/optional/python-bindings/gnucash_core.py
Log:
Bug #634812: Improve backend error reporting for Session begin
Patch by Mike E:
The current error feedback to a python scrpt/user looks something like:
call to begin resulted in the following errors, (7,)
This change in gnucash_core.py makes the feedback similar to:
call to begin resulted in the following errors, ERR_BACKEND_LOCKED
This is less cryptic and aid debugging of user python scripts. My only
issue though is whether this would break existing user scripts where checking
of this error code is used for flow control. Although since the ERR_ codes are
imported with gnucash_core_c it *should* have no effect.
More information about the gnucash-patches
mailing list