Skip to content

Commit

Permalink
address the comment
Browse files Browse the repository at this point in the history
Signed-off-by: yisaer <disxiaofei@163.com>
  • Loading branch information
Yisaer committed Aug 22, 2022
1 parent dedb8e7 commit 3f44942
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions sessionctx/stmtctx/stmtctx.go
Original file line number Diff line number Diff line change
Expand Up @@ -1041,9 +1041,7 @@ func (r StatsLoadResult) ErrorMsg() string {
b.WriteString(strconv.FormatInt(r.Item.ID, 10))
b.WriteString(", isIndex:")
b.WriteString(strconv.FormatBool(r.Item.IsIndex))
if r.Error != nil {
b.WriteString(", err:")
b.WriteString(r.Error.Error())
}
b.WriteString(", err:")
b.WriteString(r.Error.Error())
return b.String()
}

0 comments on commit 3f44942

Please sign in to comment.