used to say that sth has happened to spoil your plans
Definitions from the Oxford Advanced Learner's Dictionary, 9th edition