Skip to content

Commit dc12b5c

Browse files
committed
chore(spanner): add error message
1 parent 9e4c31f commit dc12b5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

google-cloud-spanner/src/main/java/com/google/cloud/spanner/MultiplexedSessionDatabaseClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,8 @@ private void maybeMarkUnimplemented(Throwable t) {
293293

294294
private void maybeMarkUnimplementedForRW(SpannerException spannerException) {
295295
if (spannerException.getErrorCode() == ErrorCode.UNIMPLEMENTED
296-
// && spannerException.getReason().equalsIgnoreCase("Transaction type read_write not supported
297-
// with multiplexed sessions")
296+
// && spannerException.getCause().getMessage().contains("Transaction type read_write not
297+
// supported with multiplexed sessions")
298298
) {
299299
unimplementedForRW.set(true);
300300
}

0 commit comments

Comments
 (0)