SERVER-8115 - Add error checking to db.printCollectionStats()