I was planning to go to Osaka for work.
But, I made a mistake in booking the hotel for a day and I panicked.
It was good that I noticed just before I left.
and was very impatient.
–>and I panicked.
It was good to notice just before I left.
–>It was good that I noticed just before I left.