diff --git a/core/src/db/DBImpl.cpp b/core/src/db/DBImpl.cpp index 0687ca43d4..0b3309d84e 100644 --- a/core/src/db/DBImpl.cpp +++ b/core/src/db/DBImpl.cpp @@ -1026,8 +1026,12 @@ DBImpl::BuildTableIndexRecursively(const std::string& table_id, const TableIndex GetFailedIndexFileOfTable(table_id, failed_files); if (!failed_files.empty()) { std::string msg = "Failed to build index for " + std::to_string(failed_files.size()) + - ((failed_files.size() == 1) ? " file" : " files") + - ", file size is too large or gpu memory is not enough"; + ((failed_files.size() == 1) ? " file" : " files"); +#ifdef MILVUS_CPU_VERSION + msg += ", please double check index parameters."; +#else + msg += ", file size is too large or gpu memory is not enough."; +#endif return Status(DB_ERROR, msg); }