Temporarily work-around for repo update crashes

On certain locales, F-Droid would crash at startup due to #334.

This isn't a proper fix, but rather a workaround that logs what happened and
links to the issue, instead of making F-Droid crash entirely.
This commit is contained in:
Daniel Martí 2015-08-20 17:49:57 -07:00
parent f0481ffa14
commit 2d14e3c1c4

View File

@ -157,6 +157,11 @@ public class LocalRepoKeyStore {
} catch (UnrecoverableKeyException | KeyStoreException | NoSuchAlgorithmException | CertificateException | OperatorCreationException | IOException e) {
Log.e(TAG, "Error loading keystore: " + e.getMessage());
Log.e(TAG, Log.getStackTraceString(e));
// TODO: Remove once we have a proper fix for #334
} catch (IllegalArgumentException e) {
Log.e(TAG, "Error loading keystore: " + e.getMessage());
Log.e(TAG, Log.getStackTraceString(e));
Log.e(TAG, "See https://gitlab.com/fdroid/fdroidclient/issues/334");
}
}