The word "tell" is always connected to two pieces of information: who you're telling something to, and what you're telling that person:
I wish you'd told me that you were leaving sooner.
In this example, "me" is object (who) and "that you were leaving" is the information (what).
Sometimes you can leave out the second part if the listener already knos what you're talking about:
Why didn't you tell me?