summaryrefslogtreecommitdiff
path: root/src/se/leap/bitmaskclient/ProviderAPI.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/se/leap/bitmaskclient/ProviderAPI.java')
-rw-r--r--src/se/leap/bitmaskclient/ProviderAPI.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/se/leap/bitmaskclient/ProviderAPI.java b/src/se/leap/bitmaskclient/ProviderAPI.java
index f0938310..1408efc8 100644
--- a/src/se/leap/bitmaskclient/ProviderAPI.java
+++ b/src/se/leap/bitmaskclient/ProviderAPI.java
@@ -517,7 +517,7 @@ public class ProviderAPI extends IntentService {
if(provider_json.has(ERRORS)) {
String reason_to_fail = provider_json.getString(ERRORS);
result.putString(ERRORS, reason_to_fail);
- result.putBoolean(ERRORS, false);
+ result.putBoolean(RESULT_KEY, false);
} else {
ConfigHelper.saveSharedPref(Provider.KEY, provider_json);
ConfigHelper.saveSharedPref(ProviderItem.DANGER_ON, danger_on);
@@ -533,6 +533,7 @@ public class ProviderAPI extends IntentService {
}
} catch (JSONException e) {
result.putBoolean(RESULT_KEY, false);
+ result.putString(ERRORS, "Corrupt download");
}
return result;