This quote means that it is better to be honest than to be exposed as having lied. It suggests that if you don’t tell the truth, someone else will and that it may be worse when others share the information. Therefore, it’s best to be truthful and open with others.