Enhance writeDocs error per post from David Halls.