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:
Linas Vepstas 2001-06-27 04:16:35 +00:00
parent c330f4bc7f
commit 207887ee68
2 changed files with 3 additions and 0 deletions

View File

@ -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;
}

View File

@ -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;
}