Skip to content

Commit

Permalink
Fix exception type on worker cancellation indicating no user input.
Browse files Browse the repository at this point in the history
  • Loading branch information
dkocher committed Oct 11, 2023
1 parent 70e4bda commit 6beb1f5
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import ch.cyberduck.core.exception.BackgroundException;
import ch.cyberduck.core.exception.ConnectionCanceledException;
import ch.cyberduck.core.exception.TransferCanceledException;
import ch.cyberduck.core.exception.TransferStatusCanceledException;
import ch.cyberduck.core.io.StreamListener;
import ch.cyberduck.core.notification.NotificationService;
import ch.cyberduck.core.preferences.PreferencesFactory;
Expand Down Expand Up @@ -236,7 +237,7 @@ public Future<TransferStatus> prepare(final Path file, final Local local, final
log.debug(String.format("Find transfer status of %s for transfer %s", file, this));
}
if(this.isCanceled()) {
throw new TransferCanceledException();
throw new TransferStatusCanceledException();
}
if(prompt.isSelected(new TransferItem(file, local))) {
return this.submit(new RetryTransferCallable(transfer.getSource()) {
Expand Down Expand Up @@ -338,7 +339,7 @@ public String toString() {
*/
public Future<TransferStatus> transfer(final TransferItem item, final TransferAction action) throws BackgroundException {
if(this.isCanceled()) {
throw new TransferCanceledException();
throw new TransferStatusCanceledException();
}
// Only transfer if accepted by filter and stored in table with transfer status
if(table.containsKey(item)) {
Expand Down

0 comments on commit 6beb1f5

Please sign in to comment.