Remove concatenation of syntacticErrors instead return immediately if encountering any error