Mention F-Droid in index file fetch error string

The problem here is that oftentimes, the index fetch will happen
automatically in the background while the user is in a different app. If
the fetch fails, the warning text changed here is displayed as a toast,
but without this change there's no way to tell that it's coming from
F-Droid.
This commit is contained in:
AJ Jordan 2019-03-21 13:18:08 -04:00
parent 5d21f0bc86
commit 8eea0f6c34
No known key found for this signature in database
GPG Key ID: A4FDB7BE12F63EC3
2 changed files with 3 additions and 3 deletions

View File

@ -142,7 +142,7 @@ public class IndexUpdater {
}
}
throw new UpdateException("Error getting index file", e);
throw new UpdateException("Error getting F-Droid index file", e);
} catch (InterruptedException e) {
// ignored if canceled, the local database just won't be updated
e.printStackTrace();

View File

@ -176,7 +176,7 @@ public class IndexV1Updater extends IndexUpdater {
if (downloader != null) {
FileUtils.deleteQuietly(downloader.outputFile);
}
throw new IndexUpdater.UpdateException("Error getting index file", e2);
throw new IndexUpdater.UpdateException("Error getting F-Droid index file", e2);
} catch (InterruptedException e2) {
// ignored if canceled, the local database just won't be updated
}
@ -185,7 +185,7 @@ public class IndexV1Updater extends IndexUpdater {
if (downloader != null) {
FileUtils.deleteQuietly(downloader.outputFile);
}
throw new IndexUpdater.UpdateException("Error getting index file", e);
throw new IndexUpdater.UpdateException("Error getting F-Droid index file", e);
} catch (InterruptedException e) {
// ignored if canceled, the local database just won't be updated
}