only emit syntax error if one occured, otherwise emit original error