From 0b0d3addde4e2f96e3bbd4a8f9a4c1ae9763f3e7 Mon Sep 17 00:00:00 2001 From: groot Date: Thu, 28 Nov 2019 10:53:20 +0800 Subject: [PATCH] modify error message --- core/src/db/DBImpl.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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); }