Improve message for incorrect variable assignment