Skip to content

Commit

Permalink
fix(spanner): fallback to check grpc error message if ResourceType is…
Browse files Browse the repository at this point in the history
… nil for checking sessionNotFound errors (#7163)
  • Loading branch information
rahul2393 authored Dec 14, 2022
1 parent 6bb95ef commit 2552e09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spanner/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -1722,7 +1722,7 @@ func isSessionNotFoundError(err error) bool {
return rt == sessionResourceType
}
}
return false
return strings.Contains(err.Error(), "Session not found")
}

// isClientClosing returns true if the given error is a
Expand Down

0 comments on commit 2552e09

Please sign in to comment.