Skip to content

Commit

Permalink
fix panic
Browse files Browse the repository at this point in the history
Signed-off-by: Florent Poinsard <[email protected]>
  • Loading branch information
frouioui committed Feb 3, 2025
1 parent dd3b498 commit b66a4ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions go/vt/vterrors/code.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,5 +291,8 @@ func ErrorsHaveInvalidSession(errs []error) bool {
}

func IsInvalidSessionError(err error) bool {
if err == nil {
return false
}
return strings.Contains(err.Error(), VT15001(0).ID)
}

0 comments on commit b66a4ef

Please sign in to comment.