better error reporting in docformat test