Improve error printing when experincing syntax errors