mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
(Bug 45472) Consider network failure during a sync request a 'soft'
error
This commit is contained in:
parent
61ed62c6b3
commit
05828958fc
1 changed files with 5 additions and 1 deletions
|
|
@ -72,7 +72,11 @@ public class ContributionsSyncAdapter extends AbstractThreadedSyncAdapter {
|
|||
}
|
||||
result = builder.get();
|
||||
} catch (IOException e) {
|
||||
throw new RuntimeException(e); // FIXME: Maybe something else?
|
||||
// There isn't really much we can do, eh?
|
||||
// FIXME: Perhaps add EventLogging?
|
||||
syncResult.stats.numIoExceptions += 1; // Not sure if this does anything. Shitty docs
|
||||
Log.d("Commons", "Syncing failed due to " + e.toString());
|
||||
return;
|
||||
}
|
||||
Log.d("Commons", "Last modified at " + lastModified);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue