Correct the message displayed for syntax error (#12146)

Authored by Aditya <adityadivekar03@gmail.com> on Jun 25 2016, 9:21 AM.