This is an automated email from the ASF dual-hosted git repository.

tmaret pushed a commit to branch SLING-10095-2
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-distribution-journal.git

commit 8ff5149c478c75709856d8ff1c74ce5c08de1382
Author: tmaret <[email protected]>
AuthorDate: Fri Dec 17 22:58:30 2021 +0100

    SLING-10095 - Surface latest content package extractor error in the 
exception
---
 .../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());
     }
 }

Reply via email to