From 09c927688ae3a2c0d7d1b20290cd20734b821aab Mon Sep 17 00:00:00 2001 From: Keith Donald Date: Sun, 13 Jul 2008 04:51:11 +0000 Subject: [PATCH] better logging --- .../java/org/springframework/faces/webflow/JsfViewFactory.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spring-faces/src/main/java/org/springframework/faces/webflow/JsfViewFactory.java b/spring-faces/src/main/java/org/springframework/faces/webflow/JsfViewFactory.java index 82494bd0..e052ddaa 100644 --- a/spring-faces/src/main/java/org/springframework/faces/webflow/JsfViewFactory.java +++ b/spring-faces/src/main/java/org/springframework/faces/webflow/JsfViewFactory.java @@ -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("/")) {