kwin commented on a change in pull request #3:
URL: 
https://github.com/apache/sling-org-apache-sling-jcr-packageinit/pull/3#discussion_r563933930



##########
File path: 
src/main/java/org/apache/sling/jcr/packageinit/impl/ExecutionPlanRepoInitializer.java
##########
@@ -163,6 +163,9 @@ public void processRepository(SlingRepository 
slingRepository) throws Exception
                         builder.with(session);
                         ExecutionPlan xplan = builder.execute();
                         if (xplan.getTasks().size() > 0) {
+                            if (xplan.hasErrors()) {
+                                throw new 
IllegalStateException("Excecutionplan execution contained errors - cannot 
complete repository initialization.");

Review comment:
       It would be good to include the errors from the tasks in the exception. 
That way debugging is way easier.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to