print update document when update fails