Throw with suppressed in stack.

This commit is contained in:
David Kocher
2026-05-19 11:55:19 +02:00
parent 129b5d90ba
commit cd5137c080
@@ -102,8 +102,9 @@ public class SMBWriteFeature implements Write<Void> {
try {
session.releaseShare(share);
}
catch(BackgroundException ignored) {
// Ignore
catch(BackgroundException r) {
r.addSuppressed(e);
throw e;
}
throw e;
}