Raise descriptive error if prompt contains a bad variable