Use corrent variable in exception message