This is the 14026th most frequent Russian word.
огорчить
To upset or distress.
Here, 'огорчить' is used in its direct sense to mean causing emotional sorrow or distress to someone due to an event or news.
Эта новость огорчила меня.
This news upset me.
In this sentence, 'огорчить' shows an intention to avoid causing someone emotional discomfort due to bringing up an unfavorable matter.
Не хотел тебя огорчать, но ошибка была в твоём расчёте.
I didn't want to upset you, but the mistake was in your calculation.
Here, 'огорчить' is used to reflect a person's thoughtfulness in avoiding causing emotional sadness to others.