Errare humanum est. As long as you learn from your mistakes, it contributes to deeper insight and understanding. So failing is almost a good thing in our development processes.