The beauty of failing while learning is that you learn what not to do. As long a mistake is learned from, it is not a mistake, it is an error. The biggest mistake is to not learn, or not try something different, to just give up is not acceptable in learning either.
And a small mistake in the short term can lead to valuable time and effort being saved in the long term when you do not make that mistake on a large project of similar style.