diff options
author | Markus Armbruster <armbru@redhat.com> | 2018-06-14 21:14:37 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2018-06-15 14:49:44 +0200 |
commit | 3692b5d76819e573dedc9004c4b2b0e3dad83530 (patch) | |
tree | 3154adc7c2d6e1e2ef2103d3256a6f510844b549 /qobject/json-lexer.c | |
parent | f1b34a248e9785e8cc0d28a1685d2cf4460bb256 (diff) |
block-qdict: Clean up qdict_crumple() a bit
When you mix scalar and non-scalar keys, whether you get an "already
set as scalar" or an "already set as dict" error depends on qdict
iteration order. Neither message makes much sense. Replace by
""Cannot mix scalar and non-scalar keys". This is similar to the
message we get for mixing list and non-list keys.
I find qdict_crumple()'s first loop hard to understand. Rearrange it
and add a comment.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qobject/json-lexer.c')
0 files changed, 0 insertions, 0 deletions