improved error messages for invalid new indexes