Improve error message when the last provisioning steps fail

This commit is contained in:
AsamK 2021-10-19 22:16:35 +02:00
parent d4b9356c5c
commit 3636023cb8

View file

@ -134,16 +134,15 @@ public class ProvisioningManager {
try { try {
m.refreshPreKeys(); m.refreshPreKeys();
} catch (Exception e) { } catch (Exception e) {
logger.error("Failed to check new account state."); logger.error("Failed to refresh pre keys.");
throw e;
} }
logger.debug("Requesting sync data"); logger.debug("Requesting sync data");
try { try {
m.requestAllSyncData(); m.requestAllSyncData();
} catch (Exception e) { } catch (Exception e) {
logger.error("Failed to request sync messages from linked device."); logger.error(
throw e; "Failed to request sync messages from linked device, data can be requested again with `sendSyncRequest`.");
} }
final var result = m; final var result = m;