Skip to content

Commit

Permalink
Make max retry error show correct message
Browse files Browse the repository at this point in the history
  • Loading branch information
rafiss committed Jan 18, 2022
1 parent 561007c commit da20971
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crdb/error.go
Expand Up @@ -71,6 +71,9 @@ func newMaxRetriesExceededError(err error, maxRetries int) *MaxRetriesExceededEr
}
}

// Error implements the error interface.
func (e *MaxRetriesExceededError) Error() string { return e.msg }

// TxnRestartError represents an error when restarting a transaction. `cause` is
// the error from restarting the txn and `retryCause` is the original error which
// triggered the restart.
Expand Down

0 comments on commit da20971

Please sign in to comment.