Foul up (3)
I believe the answer is:
'foul up' is the definition.
(both can mean to blunder)
This is all the clue.
(Other definitions for err that I've seen before include "Miss the mark" , "Be mistaken" , "Go wrong" , "Leave the straight and narrow" , "have an affair?" .)