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:
parent
5d21f0bc86
commit
8eea0f6c34
@ -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();
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user