Caught in a white lie? What if your boyfriend/girlfriend responded this way?

What if you were caught in telling a white lie, and your significant other, instead of responding this way:

"I know you're lying. You can tell me the truth."

*even in a calm tone sound accusatory, right?

Responded this way:

"You don't want to tell me, and that's okay. I don't need to know."

*said in a friendly understanding tone

I'm trying to figure out the best way to approach a lie (even a little white lie) to make someone really feel safe to be honest with me without judgement.
Caught in a white lie? What if your boyfriend/girlfriend responded this way?
Post Opinion