Skip to content

Commit 31202c5

Browse files
committed
chore: optimze validate error message
1 parent 595ae9b commit 31202c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

canal/canal.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ func (c *Canal) prepareSyncer() error {
483483
} else {
484484
host, port, err := net.SplitHostPort(c.cfg.Addr)
485485
if err != nil {
486-
return errors.Errorf("invalid mysql addr format %s, must host:port", c.cfg.Addr)
486+
return errors.Errorf("invalid MySQL address format %s, must host:port", c.cfg.Addr)
487487
}
488488
portNumber, err := strconv.ParseUint(port, 10, 16)
489489
if err != nil {

0 commit comments

Comments
 (0)