Fix missing :: operator when catching syntax error
Update the error feedback to be more explicit about syntax error