another little errcode fix

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4820 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas 2001-06-27 06:29:42 +00:00
parent 006ec07097
commit 46e97be3eb
3 changed files with 15 additions and 1 deletions

View File

@ -358,6 +358,8 @@ xaccAccountCommitEdit (Account *acc)
/* XXX hack alert FIXME implement account rollback */
PERR (" backend asked engine to rollback, but this isn't"
" handled yet. Return code=%d", errcode);
/* push error back onto the stack */
xaccBackendSetError (be, errcode);
}
}
acc->core_dirty = FALSE;

View File

@ -1473,6 +1473,10 @@ xaccTransCommitEdit (Transaction *trans)
"\t(This dialog should be a gui dialog and \n"
"\tshould check for errors)\n");
}
/* push error back onto the stack */
xaccBackendSetError (be, errcode);
trans->editlevel++;
xaccTransRollbackEdit (trans);
return;
@ -1696,12 +1700,17 @@ xaccTransRollbackEdit (Transaction *trans)
trans->editlevel++;
xaccTransDestroy (trans);
xaccFreeTransaction (trans);
/* push error back onto the stack */
xaccBackendSetError (be, errcode);
LEAVE ("deleted trans addr=%p\n", trans);
return;
}
if (ERR_BACKEND_NO_ERR != errcode)
{
PERR ("Rollback Failed. Ouch!");
PERR ("Rollback Failed. Ouch!");
/* push error back onto the stack */
xaccBackendSetError (be, errcode);
}
}

View File

@ -208,6 +208,9 @@ gnc_price_commit_edit (GNCPrice *p)
/* XXX hack alert FIXME implement price rollback */
PERR (" backend asked engine to rollback, but this isn't"
" handled yet. Return code=%d", errcode);
/* push error back onto the stack */
xaccBackendSetError (be, errcode);
}
}
p->not_saved = FALSE;