Fix missing :: operator when catching syntax error