diff --git a/core/src/main/java/com/web3auth/core/Web3Auth.kt b/core/src/main/java/com/web3auth/core/Web3Auth.kt index 1ee2e88..09dfed2 100644 --- a/core/src/main/java/com/web3auth/core/Web3Auth.kt +++ b/core/src/main/java/com/web3auth/core/Web3Auth.kt @@ -154,7 +154,7 @@ class Web3Auth(web3AuthOptions: Web3AuthOptions) { if (web3AuthResponse.error?.isNotBlank() == true) { loginCompletableFuture.completeExceptionally( UnKnownException( - web3AuthResponse.error ?: Web3AuthError.getError(ErrorCode.SOMETHING_WENT_ERROR) + web3AuthResponse.error ?: Web3AuthError.getError(ErrorCode.SOMETHING_WENT_WRONG) ) ) } @@ -260,7 +260,7 @@ class Web3Auth(web3AuthOptions: Web3AuthOptions) { sessionCompletableFuture.completeExceptionally( UnKnownException( web3AuthResponse.error ?: Web3AuthError.getError( - ErrorCode.SOMETHING_WENT_ERROR + ErrorCode.SOMETHING_WENT_WRONG ) ) ) diff --git a/core/src/main/java/com/web3auth/core/types/Web3AuthError.kt b/core/src/main/java/com/web3auth/core/types/Web3AuthError.kt index 107c90e..da222c3 100644 --- a/core/src/main/java/com/web3auth/core/types/Web3AuthError.kt +++ b/core/src/main/java/com/web3auth/core/types/Web3AuthError.kt @@ -13,7 +13,7 @@ object Web3AuthError { ErrorCode.DECODING_ERROR -> { "Decoding Error" } - ErrorCode.SOMETHING_WENT_ERROR -> { + ErrorCode.SOMETHING_WENT_WRONG -> { "Something went wrong!" } ErrorCode.RUNTIME_ERROR -> { @@ -32,5 +32,5 @@ enum class ErrorCode { DECODING_ERROR, RUNTIME_ERROR, APP_CANCELLED, - SOMETHING_WENT_ERROR, + SOMETHING_WENT_WRONG, } \ No newline at end of file