Skip to content
Snippets Groups Projects
Commit 50bc37be authored by Johannes Hörmann's avatar Johannes Hörmann
Browse files

throw error if consumer not found in context lib

parent 6f0f36b4
No related branches found
No related tags found
No related merge requests found
......@@ -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]));
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment