mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-22 12:41:27 +00:00
apply review suggestions
This commit is contained in:
@@ -119,6 +119,7 @@ public class UpdatesPreferencesController implements FxController {
|
||||
private void updateFailed(WorkerStateEvent workerStateEvent) {
|
||||
assert workerStateEvent.getSource() == updateService;
|
||||
LOG.error("Update failed.", updateService.getException());
|
||||
updateService.reset();
|
||||
}
|
||||
|
||||
/* Observable Properties */
|
||||
|
||||
@@ -66,7 +66,11 @@ public class FallbackUpdateMechanism implements UpdateMechanism<UpdateInfo> {
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
} catch (IOException | InterruptedException e) {
|
||||
} catch (InterruptedException e) {
|
||||
Thread.currentThread().interrupt();
|
||||
LOG.warn("Update check interrupted", e);
|
||||
return null;
|
||||
} catch (IOException e) {
|
||||
LOG.warn("Update check failed", e);
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -96,6 +96,7 @@ public class MacOsDmgUpdateMechanism extends DownloadUpdateMechanism {
|
||||
}
|
||||
LOG.debug("Update ready: {}", workDir.resolve("Cryptomator.app"));
|
||||
} catch (InterruptedException e) {
|
||||
Thread.currentThread().interrupt();
|
||||
throw new InterruptedIOException("Failed to extract DMG, interrupted");
|
||||
}
|
||||
return UpdateStep.of("Restarting...", this::restart);
|
||||
|
||||
Reference in New Issue
Block a user