misc/collect.py: better error messages