improved debug on document exception for disco items