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