wbtlb commented on code in PR #334:
URL:
https://github.com/apache/shardingsphere-on-cloud/pull/334#discussion_r1184640653
##########
pitr/agent/internal/handler/healthcheck.go:
##########
@@ -38,5 +38,12 @@ func HealthCheck(ctx *fiber.Ctx) error {
return fmt.Errorf(efmt, in.Username, len(in.Password),
in.DBName, err)
}
+ // check schema if needed
+ if in.Schema != "" {
+ if err := pkg.OG.CheckSchema(in.Username, in.Password,
in.DBName, in.DBPort, in.Schema); err != nil {
+ return fmt.Errorf("pkg.OG.CheckSchema() return
err=%s,wrap=%w", err, err)
Review Comment:
brackets can be remove in error message
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]