Skip to content

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

chore: update error message

d-bytebasefc20b595ec01
diff --git a/backend/server/sql.go b/backend/server/sql.go
index 152baa6855..b51830fe66 100644
--- a/backend/server/sql.go
+++ b/backend/server/sql.go
@@ -309,7 +309,7 @@ func (s *Server) registerSQLRoutes(g *echo.Group) {
return echo.NewHTTPError(http.StatusInternalServerError, fmt.Sprintf("Failed to check access control for database: %q", database.DatabaseName)).SetInternal(err)
}
if !ok {
- return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Malformed sql execute request, no permission to access database %q", database.DatabaseName))
+ return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Permission denied to access database %q", database.DatabaseName))
}
usedExpression = ue
}