Add suppressed exception.

This commit is contained in:
David Kocher
2026-05-18 17:05:25 +02:00
parent 7646f16c04
commit ea2488e417
@@ -106,7 +106,13 @@ public class GraphWriteFeature implements Write<DriveItem.Metadata> {
@Override
protected void handleIOException(final IOException e) throws IOException {
upload.cancelUpload();
try {
upload.cancelUpload();
}
catch(IOException c) {
c.addSuppressed(e);
throw c;
}
throw e;
}
}