From 54c9386bdc420c9201b5bc1342509bbfb86c4502 Mon Sep 17 00:00:00 2001 From: Jin Hai Date: Sat, 25 Apr 2020 10:04:04 +0800 Subject: [PATCH] #2076 CheckMetricConfigAddress error message (#2077) Signed-off-by: jinhai --- CHANGELOG.md | 2 ++ core/src/config/Config.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d7b1351..3fda890c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,8 @@ Please mark all change in change log and use the issue from GitHub - \#1929 Skip MySQL meta schema field width check - \#2073 Fix CheckDBConfigBackendUrl error message +- \#2076 CheckMetricConfigAddress error message + ## Feature - \#1965 FAISS/NSG/HNSW/ANNOY use unified distance calculation algorithm - \#2064 Warn when use SQLite as metadata management diff --git a/core/src/config/Config.cpp b/core/src/config/Config.cpp index 8c8f0435..308dea7e 100644 --- a/core/src/config/Config.cpp +++ b/core/src/config/Config.cpp @@ -1093,7 +1093,7 @@ Status Config::CheckMetricConfigAddress(const std::string& value) { if (!ValidationUtil::ValidateIpAddress(value).ok()) { std::string msg = "Invalid metric ip: " + value + ". Possible reason: metric_config.ip is invalid."; - return Status(SERVER_INVALID_ARGUMENT, "Invalid metric config ip: " + value); + return Status(SERVER_INVALID_ARGUMENT, msg); } return Status::OK(); } -- GitLab