put parser into error state if callback returns non-zero