If it is any 'comfort' to you, I've made the same mistake myself. = It might give you 'comfort' to know that I've made the same mistake myself.
When we went out for drinks together, I realized we were getting 'too close for comfort'. [=we were getting closer than I wanted to be]
Knowing that I can rely on your help is a 'comforting' thought. = It is 'comforting' to know that I can rely on your help.
(..) of two young Hobbits. Where are they? They passed this way the day before yesterday. They met someone they did not expect. Does that comfort you? Who are you? Show yourself! It cannot be. You fell. Through fire... (..)2002 The Lord of the Rings: The Two Towers