diff --git a/process/Context_lib/process.js b/process/Context_lib/process.js index eb6bb42a0b24e8075c14c4c2e107af4a9f35cc0e..877b1cf2c01a0afdd1eee2483cf2b94fc9bd249b 100644 --- a/process/Context_lib/process.js +++ b/process/Context_lib/process.js @@ -87,7 +87,7 @@ ContextUtils.getContextConsumer = function(pContextId) case ContextUtils.getContextName("PrivatePerson"): return "PrivatePersons"; default: - return "NO_CONSUMER_DEFINED_IN_CONTEXT_LIB_GETCONTEXTCONSUMER"; + throw new Error(translate.withArguments("No consumer found for context '%0'", [pContextId])); } }