mirror of
https://github.com/iterate-ch/cyberduck.git
synced 2026-05-26 19:10:49 +00:00
Add suppressed exceptions to stack.
This commit is contained in:
@@ -196,12 +196,7 @@ public class KeychainLoginService implements LoginService {
|
||||
}
|
||||
catch(LoginCanceledException c) {
|
||||
// Canceled by user
|
||||
try {
|
||||
c.initCause(e);
|
||||
}
|
||||
catch(IllegalArgumentException | IllegalStateException r) {
|
||||
log.warn("Ignore error {} initializing failure {} with cause {}", r, e, c);
|
||||
}
|
||||
c.addSuppressed(e);
|
||||
throw c;
|
||||
}
|
||||
log.debug("Reset credentials for {}", bookmark);
|
||||
|
||||
@@ -86,7 +86,13 @@ public class MountWorker extends Worker<Path> {
|
||||
// Retrieve directory listing of working directory
|
||||
final ListWorker worker = new ListWorker(cache, home, listener);
|
||||
listener.message(worker.getActivity());
|
||||
cache.put(home, worker.run(session));
|
||||
try {
|
||||
cache.put(home, worker.run(session));
|
||||
}
|
||||
catch(BackgroundException f) {
|
||||
f.addSuppressed(e);
|
||||
throw f;
|
||||
}
|
||||
return home;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user