Error path referenced wrong var name

Fixed obvious bug - error path references wrong variable name; reran same scenario & got sensible error message.