[ https://issues.apache.org/jira/browse/SLING-8374?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16827263#comment-16827263 ]
Alexei Krainiouk commented on SLING-8374: ----------------------------------------- New pull request submitted. Reverted Case 1 and changed case 2 to re-throw all errors. > Missing out exceptions in catch clause in DistributionSubscriber class > ---------------------------------------------------------------------- > > Key: SLING-8374 > URL: https://issues.apache.org/jira/browse/SLING-8374 > Project: Sling > Issue Type: Bug > Components: Content Distribution > Affects Versions: Content Distribution Journal Core 0.1.0 > Reporter: Alexei Krainiouk > Priority: Major > Time Spent: 0.5h > Remaining Estimate: 0h > > InĀ > [DistributionSubscriber.importPackage|https://github.com/apache/sling-org-apache-sling-distribution-journal/blob/master/src/main/java/org/apache/sling/distribution/journal/impl/subscriber/DistributionSubscriber.java#L690] > method. catch (Exception e) should be replaced with catch (Throwable e) in > order to count all possible errors in failedPackageImports metric. > This pull request provides fixes for above issues: > https://github.com/apache/sling-org-apache-sling-distribution-journal/pull/4 -- This message was sent by Atlassian JIRA (v7.6.3#76005)