From fffc952ecea52f6e8802b7c154d2774cb9daf7b2 Mon Sep 17 00:00:00 2001 From: yuanruji Date: Thu, 26 Sep 2024 10:54:15 +0800 Subject: [PATCH] =?UTF-8?q?refactor(dbm-services):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E6=A8=A1=E6=8B=9F=E6=89=A7=E8=A1=8C=E6=97=A5=E5=BF=97=20#7140?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dbm-services/mysql/db-simulation/app/service/simulation_task.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbm-services/mysql/db-simulation/app/service/simulation_task.go b/dbm-services/mysql/db-simulation/app/service/simulation_task.go index b68cf6e3a4..ad1c88f3ce 100644 --- a/dbm-services/mysql/db-simulation/app/service/simulation_task.go +++ b/dbm-services/mysql/db-simulation/app/service/simulation_task.go @@ -313,7 +313,7 @@ func (t *SimulationTask) executeOneObject(e ExcuteSQLFileObj, containerName stri } realexcutedbs = util.FilterOutStringSlice(intentionDbs, ignoreDbs) if len(realexcutedbs) == 0 { - return "", "", fmt.Errorf("the changed db does not exist") + return "", "", fmt.Errorf("需要执行的db:%v,需要忽略的db:%v,查询线上存在的db,计算后没有找到任何变更的目标db,请检查你的输入是否正确", e.DbNames, e.IgnoreDbNames) } for idx, cmd := range t.getLoadSQLCmd(t.Path, e.SQLFile, realexcutedbs) { sstdout += util.RemovePassword(cmd) + "\n"