fix typo when raising syntax error

Change-Id: I4ddcacb912536dda23ac4d371ff5b06664588b99