From 041d72b755f4246a0ae3cf57db961c8f51c9164d Mon Sep 17 00:00:00 2001 From: Kevin Hu Date: Mon, 24 Feb 2025 12:42:52 +0800 Subject: [PATCH] Refine the error message. (#5275) ### What problem does this PR solve? #5265 ### Type of change - [x] Refactoring --- agent/component/exesql.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agent/component/exesql.py b/agent/component/exesql.py index 5007c4283..639d011d7 100644 --- a/agent/component/exesql.py +++ b/agent/component/exesql.py @@ -52,9 +52,9 @@ class ExeSQLParam(GenerateParam): self.check_positive_integer(self.top_n, "Number of records") if self.database == "rag_flow": if self.host == "ragflow-mysql": - raise ValueError("The host is not accessible.") + raise ValueError("For the security reason, it dose not support database named rag_flow.") if self.password == "infini_rag_flow": - raise ValueError("The host is not accessible.") + raise ValueError("For the security reason, it dose not support database named rag_flow.") class ExeSQL(Generate, ABC):