switching incorrect variable in exception string