Skip to content

Commit adc36d3

Browse files
committed
Code refractoring
Signed-off-by: Gaurav Goel <[email protected]>
1 parent 644add1 commit adc36d3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

core/src/main/java/com/web3auth/core/Web3Auth.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ class Web3Auth(web3AuthOptions: Web3AuthOptions) {
154154
if (web3AuthResponse.error?.isNotBlank() == true) {
155155
loginCompletableFuture.completeExceptionally(
156156
UnKnownException(
157-
web3AuthResponse.error ?: Web3AuthError.getError(ErrorCode.SOMETHING_WENT_ERROR)
157+
web3AuthResponse.error ?: Web3AuthError.getError(ErrorCode.SOMETHING_WENT_WRONG)
158158
)
159159
)
160160
}
@@ -260,7 +260,7 @@ class Web3Auth(web3AuthOptions: Web3AuthOptions) {
260260
sessionCompletableFuture.completeExceptionally(
261261
UnKnownException(
262262
web3AuthResponse.error ?: Web3AuthError.getError(
263-
ErrorCode.SOMETHING_WENT_ERROR
263+
ErrorCode.SOMETHING_WENT_WRONG
264264
)
265265
)
266266
)

core/src/main/java/com/web3auth/core/types/Web3AuthError.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ object Web3AuthError {
1313
ErrorCode.DECODING_ERROR -> {
1414
"Decoding Error"
1515
}
16-
ErrorCode.SOMETHING_WENT_ERROR -> {
16+
ErrorCode.SOMETHING_WENT_WRONG -> {
1717
"Something went wrong!"
1818
}
1919
ErrorCode.RUNTIME_ERROR -> {
@@ -32,5 +32,5 @@ enum class ErrorCode {
3232
DECODING_ERROR,
3333
RUNTIME_ERROR,
3434
APP_CANCELLED,
35-
SOMETHING_WENT_ERROR,
35+
SOMETHING_WENT_WRONG,
3636
}

0 commit comments

Comments
 (0)