Improved error logging for DocDel