Skip to content

Commit

Permalink
fix: Improve exception messages in OPC-UA connector
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikriemer committed Dec 3, 2024
1 parent 298f076 commit 4c6a990
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,12 @@ public void configureSecurityPolicy(String opcServerUrl,
.filter(e -> e.getSecurityPolicyUri().equals(securityPolicy.getUri()))
.findFirst()
.orElseThrow(() ->
new SpConfigurationException("No endpoint available with security mode {} and security policy {}")
new SpConfigurationException(
String.format(
"No endpoint available with security mode %s and security policy %s",
securityMode,
securityPolicy)
)
);

tmpEndpoint = updateEndpointUrl(tmpEndpoint, host);
Expand Down

0 comments on commit 4c6a990

Please sign in to comment.