minor improvement for error message

This commit is contained in:
Mark Fisher
2010-06-16 19:21:04 +00:00
parent 88845df5e2
commit be92d13413

View File

@@ -57,8 +57,8 @@ abstract class AbstractDelegatingConsumerEndpointParser extends AbstractConsumer
}
else if (!this.hasDefaultOption()) {
parserContext.getReaderContext().error("Exactly one of the 'ref' attribute, 'expression' attribute, " +
"or inner bean (<bean/>) definition is required for this '" + element.getLocalName() + "' endpoint.",
element);
"or inner bean (<bean/>) definition is required for element " +
IntegrationNamespaceUtils.createElementDescription(element) + ".", element);
return null;
}
String method = element.getAttribute(METHOD_ATTRIBUTE);