You are expected to live above your mistakes when they occur, rather than get stocked and wanting to give up.
We live in a world of humanity and with that it is right to say that mistakes are bound to happen, only in the world of divinity lies perfection, the steps you take when mistakes occurs are great determinant of what becomes of you afterwards.