mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
006ec07097
commit
46e97be3eb
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user