Replace silent failures with noisy assertions.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15934 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
David Hampton 2007-04-19 04:18:19 +00:00
parent 468b8995bf
commit 4c7b6f45fa
2 changed files with 4 additions and 2 deletions

View File

@ -188,6 +188,8 @@ account_id_handler (xmlNodePtr node, gpointer act_pdata)
GUID *guid;
guid = dom_tree_to_guid(node);
g_return_val_if_fail(guid, FALSE);
xaccAccountSetGUID(pdata->account, guid);
g_free(guid);

View File

@ -307,7 +307,7 @@ spl_account_handler(xmlNodePtr node, gpointer data)
GUID *id = dom_tree_to_guid(node);
Account *account;
if (!id) return FALSE;
g_return_val_if_fail(id, FALSE);
account = xaccAccountLookup (id, pdata->book);
if (!account && gnc_transaction_xml_v2_testing &&
@ -333,7 +333,7 @@ spl_lot_handler(xmlNodePtr node, gpointer data)
GUID *id = dom_tree_to_guid(node);
GNCLot *lot;
if (!id) return FALSE;
g_return_val_if_fail(id, FALSE);
lot = gnc_lot_lookup (id, pdata->book);
if (!lot && gnc_transaction_xml_v2_testing &&