I'm write code for a living and am trying to find the right word for a flaw in logic. "Error" seems to vague, I'm looking specifically for a word that describes a flaw in logic.