mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-14 04:55:54 +08:00
Refine the error message. (#5275)
### What problem does this PR solve? #5265 ### Type of change - [x] Refactoring
This commit is contained in:
parent
569e40544d
commit
041d72b755
@ -52,9 +52,9 @@ class ExeSQLParam(GenerateParam):
|
|||||||
self.check_positive_integer(self.top_n, "Number of records")
|
self.check_positive_integer(self.top_n, "Number of records")
|
||||||
if self.database == "rag_flow":
|
if self.database == "rag_flow":
|
||||||
if self.host == "ragflow-mysql":
|
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":
|
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):
|
class ExeSQL(Generate, ABC):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user