diff --git a/android/test/e2e/src/main/kotlin/net/mullvad/mullvadvpn/test/e2e/misc/SimpleMullvadHttpClient.kt b/android/test/e2e/src/main/kotlin/net/mullvad/mullvadvpn/test/e2e/misc/SimpleMullvadHttpClient.kt index 734f26653749..ce2e63caa9f1 100644 --- a/android/test/e2e/src/main/kotlin/net/mullvad/mullvadvpn/test/e2e/misc/SimpleMullvadHttpClient.kt +++ b/android/test/e2e/src/main/kotlin/net/mullvad/mullvadvpn/test/e2e/misc/SimpleMullvadHttpClient.kt @@ -194,7 +194,11 @@ class SimpleMullvadHttpClient(context: Context) { "Unable to verify account due to invalid account or connectivity issues." private val onErrorResponse = { error: VolleyError -> - Logger.e("Response returned error status code: ${error.networkResponse.statusCode}") + if (error.networkResponse != null) { + Logger.e("Response returned error message: ${error.message}, status code: ${error.networkResponse.statusCode}") + } else { + Logger.e("Response returned error: ${error.message}") + } } } }