mirror of
https://github.com/iterate-ch/cyberduck.git
synced 2026-05-26 19:10:49 +00:00
Add suppressed exception.
This commit is contained in:
@@ -106,7 +106,13 @@ public class GraphWriteFeature implements Write<DriveItem.Metadata> {
|
||||
|
||||
@Override
|
||||
protected void handleIOException(final IOException e) throws IOException {
|
||||
try {
|
||||
upload.cancelUpload();
|
||||
}
|
||||
catch(IOException c) {
|
||||
c.addSuppressed(e);
|
||||
throw c;
|
||||
}
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user