sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From romb...@apache.org
Subject [sling-org-apache-sling-discovery-commons] 02/16: discovery lite: print out which descriptor value is missing
Date Tue, 07 Nov 2017 09:27:37 GMT
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.discovery.commons-1.0.20
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-discovery-commons.git

commit d5cf99cd0ed51fe10470fdf64f81492efa43bd03
Author: Robert Munteanu <rombert@apache.org>
AuthorDate: Tue Nov 29 15:56:51 2016 +0000

    discovery lite: print out which descriptor value is missing
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/discovery/commons@1771920
13f79535-47bb-0310-9956-ffa450edef68
---
 .../discovery/commons/providers/spi/base/DiscoveryLiteDescriptor.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/sling/discovery/commons/providers/spi/base/DiscoveryLiteDescriptor.java
b/src/main/java/org/apache/sling/discovery/commons/providers/spi/base/DiscoveryLiteDescriptor.java
index 9ec862d..7c5e566 100644
--- a/src/main/java/org/apache/sling/discovery/commons/providers/spi/base/DiscoveryLiteDescriptor.java
+++ b/src/main/java/org/apache/sling/discovery/commons/providers/spi/base/DiscoveryLiteDescriptor.java
@@ -42,7 +42,7 @@ public class DiscoveryLiteDescriptor {
         }
         String descriptorStr = session.getRepository().getDescriptor(DiscoveryLiteDescriptor.OAK_DISCOVERYLITE_CLUSTERVIEW);
         if (descriptorStr == null) {
-            throw new Exception("No Descriptor value available");
+            throw new Exception("No value available for descriptor " + OAK_DISCOVERYLITE_CLUSTERVIEW);
         }
         JSONObject descriptor = new JSONObject(descriptorStr);
         return new DiscoveryLiteDescriptor(descriptor);

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <commits@sling.apache.org>.

Mime
View raw message