Skip to content

Commit

Permalink
Correctly matching %v and err
Browse files Browse the repository at this point in the history
  • Loading branch information
ineiti committed Jul 22, 2020
1 parent f15728b commit d87a5e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion context.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ func (c *Context) SaveVersion(version int) error {
return b.Put(dbVersion, buf.Bytes())
})
if err != nil {
return xerrors.Errorf("tx error: %v")
return xerrors.Errorf("tx error: %v", err)
}
return nil
}
Expand Down

0 comments on commit d87a5e8

Please sign in to comment.