[The LORD said to Joshua,] "Do not be afraid or discouraged."
See Joshua 1:9
Giving up when you have made a mistake is a sure way to fail. Courage and perseverance help prevent failure, especially if you know that God approves of the task you are doing. BE BLESSED!