bson: make error message more useful.