made it so setting an illegal var will give more error information