Improve syntax error stack trace