=doc #3782 Make IODocSpec say what went wrong