Skip to content

Commit 943989f

Browse files
committed
fix comment
1 parent 0348891 commit 943989f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultTempFileService.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,10 @@ public void cleanup(final Session session) throws IOException {
132132
} catch (final IOException e) {
133133
if (first == null) {
134134
first = e;
135+
} else if (e != first) {
136+
first.addSuppressed(e);
135137
}
136-
LOGGER.warn("Failed to delete temp path {}: {}", path, e.getMessage());
138+
LOGGER.warn("Failed to delete temp path {}", path, e);
137139
}
138140
}
139141
bucket.clear();

0 commit comments

Comments
 (0)