Another error message somewhat more verbose.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20282 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming 2011-02-12 15:53:51 +00:00
parent 5f7e50efef
commit d398e99593

View File

@ -273,6 +273,12 @@ xaccQueryAddAccountGUIDMatch(QofQuery *q, AccountGUIDList *guid_list,
if (!q) return;
if (!guid_list && how != QOF_GUID_MATCH_NULL)
{
g_warning("Got a NULL guid_list but the QofGuidMatch is not MATCH_NULL (but instead %d). In other words, the list of GUID matches is empty but it must contain something non-empty.", how);
/* qof_query_guid_predicate() would trigger a g_warning as well */
return;
}
pred_data = qof_query_guid_predicate (how, guid_list);
if (!pred_data)
return;