used to comment on sth that was almost successful but in fact failed
Definiciones del Oxford Advanced Learner's Dictionary, 9.ª edición