Skip to content

Commit cc73c2c

Browse files
committed
Keep same error message
1 parent 8ed2dba commit cc73c2c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

aws-auth-cognito/src/main/java/com/amplifyframework/auth/cognito/usecases/FetchAuthSessionUseCase.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ internal class FetchAuthSessionUseCase(
111111
error.amplifyCredential.getCognitoSession(innerException)
112112
}
113113
else -> {
114-
val errorResult = innerException.toAuthException("Fetch auth session failed")
114+
val errorResult = innerException.toAuthException("Fetch auth session failed.")
115115
error.amplifyCredential.getCognitoSession(errorResult)
116116
}
117117
}
@@ -121,7 +121,7 @@ internal class FetchAuthSessionUseCase(
121121
AmplifyCredential.Empty.getCognitoSession(errorResult)
122122
}
123123
else -> {
124-
val errorResult = error.toAuthException("Fetch auth session failed")
124+
val errorResult = error.toAuthException("Fetch auth session failed.")
125125
AmplifyCredential.Empty.getCognitoSession(errorResult)
126126
}
127127
}

0 commit comments

Comments
 (0)