もう少しで~ところだった (nearly X-ed)
grammar8 sentences
The pattern 'almost / nearly X-ed' — typically formed with もう少しで, あやうく, or すんでのところで before a passive or change-of-state verb in the ~ところだった frame. Describes an event that came close to happening but didn't.