mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
report new error types
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4815 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
c330f4bc7f
commit
207887ee68
@ -486,6 +486,7 @@ pgend_account_commit_edit (Backend * bend,
|
||||
PWARN(" account data in engine is newer\n"
|
||||
" account must be rolled back. This function\n"
|
||||
" is not completely implemented !! \n");
|
||||
xaccBackendSetError (&be->be, ERR_BACKEND_MODIFIED);
|
||||
LEAVE ("rolled back");
|
||||
return 445;
|
||||
}
|
||||
|
@ -833,6 +833,7 @@ pgend_trans_commit_edit (Backend * bend,
|
||||
* routine. Our rollback routine updates from the latest in
|
||||
* the sql database, and voila! we are good to go.
|
||||
*/
|
||||
xaccBackendSetError (&be->be, ERR_BACKEND_MODIFIED);
|
||||
return 666; /* hack alert- hard coded literal */
|
||||
}
|
||||
}
|
||||
@ -908,6 +909,7 @@ pgend_trans_rollback_edit (Backend * bend, Transaction * trans)
|
||||
if (-1 < pgendTransactionGetDeletedVersion (be, trans))
|
||||
{
|
||||
LEAVE ("destroyed");
|
||||
xaccBackendSetError (&be->be, ERR_BACKEND_MOD_DESTROY);
|
||||
return BACKEND_ROLLBACK_DESTROY;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user