=doc #3782 Make IODocSpec say what went wrong

* Has run the test in a repeat job for around 2300 times without failure.
* If it fails again, it will hopefully show some more information.