(Bug 45472) Consider network failure during a sync request a 'soft'

error
This commit is contained in:
YuviPanda 2013-02-27 07:03:01 +05:30
parent 61ed62c6b3
commit 05828958fc

View file

@ -72,7 +72,11 @@ public class ContributionsSyncAdapter extends AbstractThreadedSyncAdapter {
} }
result = builder.get(); result = builder.get();
} catch (IOException e) { } 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); Log.d("Commons", "Last modified at " + lastModified);