Catch SyntaxError exception and log nice error message
Merge pull request #1634 from grz0/master

Catch SyntaxError exception and log nice error message