Tom let the cat out of the bag when he accidentally told his mother about the surprise party being planned for her.
Tom let the secret be known when he accidentally told his mother about the surprise party being planned for her.