You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by tm...@apache.org on 2021/12/17 21:58:58 UTC
[sling-org-apache-sling-distribution-journal] branch SLING-10095-2 created (now 8ff5149)
This is an automated email from the ASF dual-hosted git repository.
tmaret pushed a change to branch SLING-10095-2
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-distribution-journal.git.
at 8ff5149 SLING-10095 - Surface latest content package extractor error in the exception
This branch includes the following new commits:
new 8ff5149 SLING-10095 - Surface latest content package extractor error in the exception
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[sling-org-apache-sling-distribution-journal] 01/01: SLING-10095 - Surface latest content package extractor error in the exception
Posted by tm...@apache.org.
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 <tm...@adobe.com>
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());
}
}