Sam Corbett created BROOKLYN-471:
------------------------------------
Summary: Catalog: Unhelpful error when DSL included in catalog
metadata
Key: BROOKLYN-471
URL: https://issues.apache.org/jira/browse/BROOKLYN-471
Project: Brooklyn
Issue Type: Sub-task
Reporter: Sam Corbett
The error message produced when catalog definitions contain unsupported DSL
leaves a lot to be desired:
Catalog:
{code}
brooklyn.catalog:
items:
- a: $brooklyn:attributeWhenReady("hello")
{code}
Error on adding to the catalogue:
{code}
ERROR Error resolving {a=$brooklyn:attributeWhenReady("hello")}, in
org.apache.brooklyn.util.core.task.BasicExecutionContext@71bdc498([LocalManagementContext[FMxnzCti-NgoQFf0H],
BROOKLYN-SERVER]): Error resolving map value for key a,
$brooklyn:attributeWhenReady("hello"), in
org.apache.brooklyn.util.core.task.BasicExecutionContext@71bdc498([LocalManagementContext[FMxnzCti-NgoQFf0H],
BROOKLYN-SERVER]): Context entity not available when trying to evaluate
Brooklyn DSL
{code}
The error should be something simple like "DSL is not supported in catalog
definitions," and optionally, "you wrote:
$brooklyn:attributeWhenReady("hello")."
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)