make flaw work with syntax errors (in addition to standard errors)