Here's the answer:
“si seulement tu avais écrit une note je n'aurais pas été si inquiet”
Watch a real native speaker say it:
Here's how it sounds in a textbook:
Fun fact: the hundreds of thousands of people learning French with Memrise get this phrase correct 89.4% of the time!