Skip to content

Commit

Permalink
go livesql: provide table and column info when parse fails
Browse files Browse the repository at this point in the history
  • Loading branch information
berfarah committed Oct 1, 2018
1 parent 7ca339a commit c9e60a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion livesql/binlog.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ func parseBinlogRow(table *sqlgen.Table, binlogRow []interface{}, columnMap *col
scanner := scanners[i].(*fields.Scanner)
scanner.Target(field)
if err := scanner.Scan(binlogRow[j]); err != nil {
return nil, err
return nil, fmt.Errorf("binlog: `%s`.`%s` error: %v", table.Name, table.Columns[i].Name, err)
}
}

Expand Down

0 comments on commit c9e60a5

Please sign in to comment.