I worried a lot about this as a PhD student since I could see every flaw in my work. But, a dissertation is the beginning of a career not the culmination. It just needs to show that you've learned to make contributions to your field and be FINISHED!
Does a PhD thesis have to be good? Asking for me.