Refs#4708 printing an error message before retrying a shorter index name