Fix verbose output and error message for a non-existent variable.