Catch SyntaxError exception and log nice error message