Skip to content

Commit c140e58

Browse files
committed
improved exception and log message
1 parent 2e0d3c4 commit c140e58

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/main/java/dev/dsf/bpe/service/DownloadAllowList.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,11 @@ protected void doExecute(DelegateExecution execution, Variables variables)
4848
}
4949
catch (WebApplicationException e)
5050
{
51-
logger.error("Error while reading Bundle with id '{}' from organization {}: {}", bundleId.getValue(),
52-
task.getRequester().getReference(), e.getMessage());
51+
logger.error("Error while reading Bundle with id '{}' from organization {}: {} - {}", bundleId.getValue(),
52+
task.getRequester().getIdentifier().getValue(), e.getResponse().getStatusInfo(), e.getMessage());
5353
throw new RuntimeException("Error while reading Bundle with id '" + bundleId.getValue()
54-
+ "' from organization " + task.getRequester().getReference() + ": " + e.getMessage(), e);
54+
+ "' from organization " + task.getRequester().getIdentifier().getValue() + ": "
55+
+ e.getResponse().getStatusInfo() + " - " + e.getMessage(), e);
5556
}
5657
}
5758

0 commit comments

Comments
 (0)