Skip to content

Commit 472a491

Browse files
committed
Set a more descriptive exception message
1 parent b1ada28 commit 472a491

File tree

1 file changed

+2
-2
lines changed
  • adapters/klab.ogc/src/main/java/org/integratedmodelling/klab/stac

1 file changed

+2
-2
lines changed

adapters/klab.ogc/src/main/java/org/integratedmodelling/klab/stac/STACEncoder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,8 @@ public void getEncodedData(IResource resource, Map<String, String> urnParameters
304304
try {
305305
manager.open();
306306
collection = manager.getCollectionById(resource.getParameters().get("collectionId", String.class));
307-
} catch (Exception e1) {
308-
throw new KlabResourceAccessException("Cannot access to STAC collection " + collectionUrl);
307+
} catch (Exception e) {
308+
throw new KlabResourceAccessException("Cannot access to STAC collection " + collectionUrl + ". Reason :" + e.getMessage());
309309
}
310310

311311
if (collection == null) {

0 commit comments

Comments
 (0)