It means that your incredibly close to doing something incredible, but ya failed! so, youâre close but...
No cigar!
Macy: Hey, i almost won the presidential election, but this twat named Jack did.
Blaire: Well, *chuckles* youâre close but no cigar.