Skip to content

Commit

Permalink
conn: fix crash when reporting error
Browse files Browse the repository at this point in the history
Signed-off-by: Vicent Marti <[email protected]>
  • Loading branch information
vmg committed Nov 21, 2024
1 parent 984f5e1 commit ac14d3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/vt/binlog/binlogplayer/dbclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func (dc *dbClientImpl) Connect() error {
ctx := context.Background()
dc.dbConn, err = dc.dbConfig.Connect(ctx)
if err != nil {
return fmt.Errorf("error in connecting to mysql db with connection %v, err %v", dc.dbConn, err)
return fmt.Errorf("error in connecting to mysql db: %w", err)
}
return nil
}
Expand Down

0 comments on commit ac14d3c

Please sign in to comment.