If the lie is of such nature that would end your relationship it's probably better to tell the truth. Sooner or later the truth is likely to come out anyway so better to get over and done with.
If the lie is of such nature that would end your relationship it's probably better to tell the truth. Sooner or later the truth is likely to come out anyway so better to get over and done with.