summaryrefslogtreecommitdiff
path: root/src/se/leap
diff options
context:
space:
mode:
Diffstat (limited to 'src/se/leap')
-rw-r--r--src/se/leap/bitmaskclient/ProviderAPI.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/se/leap/bitmaskclient/ProviderAPI.java b/src/se/leap/bitmaskclient/ProviderAPI.java
index 4dc1844a..e8f37c8a 100644
--- a/src/se/leap/bitmaskclient/ProviderAPI.java
+++ b/src/se/leap/bitmaskclient/ProviderAPI.java
@@ -544,6 +544,12 @@ public class ProviderAPI extends IntentService {
return EIP_SERVICE_JSON_DOWNLOADED;
}
+ /**
+ * Interprets the error message as a JSON object and extract the "errors" keyword pair.
+ * If the error message is not a JSON object, then it is returned untouched.
+ * @param string_json_error_message
+ * @return final error message
+ */
private String pickErrorMessage(String string_json_error_message) {
String error_message = "";
try {
@@ -556,6 +562,7 @@ public class ProviderAPI extends IntentService {
return error_message;
}
+
/**
* Tries to download the contents of the provided url using commercially validated CA certificate from chosen provider.
*