mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
fix error handling semantics
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4816 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
207887ee68
commit
fe79df9323
@ -43,6 +43,9 @@ void
|
||||
xaccBackendSetError (Backend *be, GNCBackendError err)
|
||||
{
|
||||
if (!be) return;
|
||||
|
||||
/* use stack-push semantics. Only the earliest error counts */
|
||||
if (ERR_BACKEND_NO_ERR != be->last_err) return;
|
||||
be->last_err = err;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user