query::parse_items should not have the side-effect of writing error
messages to stdout. It does not fail silently since it returns the
dupkeys error.
I think figuring out what keys are duplicates can easily be done by the
user. Though if this is really a desired feature, the output should be
done at the tool that uses query::parse. The tool must then figure out
the duplicates on their own, but then a method to find duplicates could
be provided by the query module.