ㄍㄨㄥgōngㄅㄞˋbàiㄔㄨㄟˊchuíㄔㄥˊchéng

  1. 事情在即成功失敗晉書··謝安》:功敗垂成經綸。」功墮垂成」。功虧一簣前功盡棄大功告成

to fail within sight of success (idiom)​; last-minute failure, to fall at the last hurdle, snatching defeat from the jaws of victory