mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
468b8995bf
commit
4c7b6f45fa
@ -188,6 +188,8 @@ account_id_handler (xmlNodePtr node, gpointer act_pdata)
|
|||||||
GUID *guid;
|
GUID *guid;
|
||||||
|
|
||||||
guid = dom_tree_to_guid(node);
|
guid = dom_tree_to_guid(node);
|
||||||
|
g_return_val_if_fail(guid, FALSE);
|
||||||
|
|
||||||
xaccAccountSetGUID(pdata->account, guid);
|
xaccAccountSetGUID(pdata->account, guid);
|
||||||
|
|
||||||
g_free(guid);
|
g_free(guid);
|
||||||
|
@ -307,7 +307,7 @@ spl_account_handler(xmlNodePtr node, gpointer data)
|
|||||||
GUID *id = dom_tree_to_guid(node);
|
GUID *id = dom_tree_to_guid(node);
|
||||||
Account *account;
|
Account *account;
|
||||||
|
|
||||||
if (!id) return FALSE;
|
g_return_val_if_fail(id, FALSE);
|
||||||
|
|
||||||
account = xaccAccountLookup (id, pdata->book);
|
account = xaccAccountLookup (id, pdata->book);
|
||||||
if (!account && gnc_transaction_xml_v2_testing &&
|
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);
|
GUID *id = dom_tree_to_guid(node);
|
||||||
GNCLot *lot;
|
GNCLot *lot;
|
||||||
|
|
||||||
if (!id) return FALSE;
|
g_return_val_if_fail(id, FALSE);
|
||||||
|
|
||||||
lot = gnc_lot_lookup (id, pdata->book);
|
lot = gnc_lot_lookup (id, pdata->book);
|
||||||
if (!lot && gnc_transaction_xml_v2_testing &&
|
if (!lot && gnc_transaction_xml_v2_testing &&
|
||||||
|
Loading…
Reference in New Issue
Block a user