mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-30 23:45:28 +08:00
modify error message
This commit is contained in:
parent
ced5a3f3b4
commit
0b0d3addde
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user