This is an automated email from the ASF dual-hosted git repository.
tmaret pushed a commit to branch master
in repository
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-distribution-journal.git
The following commit(s) were added to refs/heads/master by this push:
new a820f46 SLING-10095 - code cleanup (#91)
a820f46 is described below
commit a820f46e7d4b69e8a6281fa32b6dacfc2b8d5137
Author: Timothee Maret <[email protected]>
AuthorDate: Fri Dec 17 23:04:20 2021 +0100
SLING-10095 - code cleanup (#91)
---
.../apache/sling/distribution/journal/bookkeeper/ErrorListener.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git
a/src/main/java/org/apache/sling/distribution/journal/bookkeeper/ErrorListener.java
b/src/main/java/org/apache/sling/distribution/journal/bookkeeper/ErrorListener.java
index 84ac7fd..2ce7455 100644
---
a/src/main/java/org/apache/sling/distribution/journal/bookkeeper/ErrorListener.java
+++
b/src/main/java/org/apache/sling/distribution/journal/bookkeeper/ErrorListener.java
@@ -39,14 +39,15 @@ public class ErrorListener implements
ProgressTrackerListener {
@Override
public void onMessage(Mode mode, String action, String path) {
+ // ignore
}
@Override
public void onError(Mode mode, String path, Exception e) {
- errorMessage = message(mode, path, e);
+ errorMessage = message(path, e);
}
- private String message(Mode mode, String path, Exception e) {
+ private String message(String path, Exception e) {
return format("Failed to import %s (%s)", path, e.toString());
}
}