better logging

This commit is contained in:
Keith Donald
2008-07-13 04:51:11 +00:00
parent 381e5e2091
commit 09c927688a

View File

@@ -171,7 +171,8 @@ public class JsfViewFactory implements ViewFactory {
Resource viewResource = flowContext.getResource(viewId);
if (!(viewResource instanceof ContextResource)) {
throw new IllegalStateException(
"A ContextResource is required to get relative view paths within this context");
"A ContextResource is required to get relative view paths within this context; the resource was "
+ viewResource);
}
String viewPath = ((ContextResource) viewResource).getPathWithinContext();
if (!viewPath.startsWith("/")) {