Print document from failure