Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: add more error logs of group (#6564)

h3n4l4e84d425c5ed
diff --git a/backend/server/issue.go b/backend/server/issue.go
index 404f95f8f2..1823d0dcec 100644
--- a/backend/server/issue.go
+++ b/backend/server/issue.go
@@ -1195,7 +1195,7 @@ func (s *Server) getPipelineCreateForDatabaseSchemaAndDataUpdate(ctx context.Con
}
singleStatements, err := parser.SplitMultiSQL(parserEngineType, originalStatement)
if err != nil {
- return nil, echo.NewHTTPError(http.StatusInternalServerError, "Failed to split multi SQL").SetInternal(err)
+ return nil, echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Cannot split statements to multiple SQL, please check your SQL syntax. Error: %s", err.Error()))
}
if len(singleStatements) == 0 {
return nil, echo.NewHTTPError(http.StatusBadRequest, "There should be at least one non-empty statement provided")