It's easy for us to give up when things didn't go well as expected. We look at our failure and think, “Maybe this is not what I can do and I should stop spending time on it.”
Of course, quitting is easy, that's why it's so tempting to give up when things go wrong. However, ask yourself, is this what you want in the future?
If you really want it, don't give up. Don't make stupid decision based on 1 failure, get back up and work on it again.