Selling Books

I recently saw a writer asking the question whether it was more important to have a good book cover or to have the book well edited. The overwhelming response on the forum was that if the cover is unappealing then no-one will ever know about the poor editing!