Before leaving I had …
discovered/decided that …
prepared everything
I forgot my passport
I missed the plane
I got terribly sunburnt
How awful!