From 611b79ba1e87b90367aab1c4f901fef352cdf856 Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Thu, 13 Sep 2018 09:14:15 +0200 Subject: update error message --- .../modules/authmodule_eIDASv2/tasks/GenerateAuthnRequestTask.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eidas_modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/authmodule_eIDASv2/tasks/GenerateAuthnRequestTask.java b/eidas_modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/authmodule_eIDASv2/tasks/GenerateAuthnRequestTask.java index eefa2b97..eb020d3f 100644 --- a/eidas_modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/authmodule_eIDASv2/tasks/GenerateAuthnRequestTask.java +++ b/eidas_modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/authmodule_eIDASv2/tasks/GenerateAuthnRequestTask.java @@ -188,7 +188,9 @@ public class GenerateAuthnRequestTask extends AbstractAuthServletTask { if (StringUtils.isEmpty(forwardURL)) { log.warn("NO ForwardURL defined in configuration. Can NOT forward to eIDAS node! Process stops"); - throw new EAAFConfigurationException("config.08", new Object[] {Constants.CONIG_PROPS_EIDAS_NODE_FORWARD_URL}); + throw new EAAFConfigurationException("config.08", new Object[] { + (environment==null)?Constants.CONIG_PROPS_EIDAS_NODE_FORWARD_URL:Constants.CONIG_PROPS_EIDAS_NODE_FORWARD_URL+"."+environment + }); } log.debug("ForwardURL: " + forwardURL + " selected to forward eIDAS request"); -- cgit v1.2.3