"sadder but wiser" means learned from a mistake.