capture syntax error