[
https://issues.apache.org/jira/browse/SLING-4754?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Radu Cotescu closed SLING-4754.
-------------------------------
> Improve error message if referenced resource type is not available
> ------------------------------------------------------------------
>
> Key: SLING-4754
> URL: https://issues.apache.org/jira/browse/SLING-4754
> Project: Sling
> Issue Type: Improvement
> Components: Scripting
> Affects Versions: Scripting Sightly Engine 1.0.2
> Reporter: Jörg Hoh
> Assignee: Radu Cotescu
> Priority: Minor
> Fix For: Scripting Sightly Engine 1.0.4
>
> Attachments: sightly-improve-template-not-found-exception.patch
>
>
> When content references a sightly component, which is not available, it
> throws a SightlyException with the message "Unable to generate Java class for
> template /apps/.../foobar.html".
> Which is correct, but in case the referenced component is just not there, the
> error handling could be improved to something like "Unable to resolve
> template %s in the repository".
> It took me a look in the sourcecode to find the actual root cause, when I got
> a stacktrace of the generic SightlyException in UnitLoader.java, line 151.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)