Skip to content

Commit 18547c5

Browse files
bootjpCopilot
andauthored
Update kv/txn_errors.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent e5ebad4 commit 18547c5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

kv/txn_errors.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ func TxnLockedDetails(err error) ([]byte, string, bool) {
3939

4040
func (e *TxnLockedError) Error() string {
4141
if e.detail != "" {
42-
return fmt.Sprintf("key: %s (%s): %s", string(e.key), e.detail, ErrTxnLocked)
42+
return fmt.Sprintf("key: %s (%s): %v", string(e.key), e.detail, ErrTxnLocked)
4343
}
44-
return fmt.Sprintf("key: %s: %s", string(e.key), ErrTxnLocked)
44+
return fmt.Sprintf("key: %s: %v", string(e.key), ErrTxnLocked)
4545
}
4646

4747
func (e *TxnLockedError) Unwrap() error {

0 commit comments

Comments
 (0)