On Wed, 2005-11-30 at 17:40 +0100, Felix Röthenbacher wrote:
> Hi
> 
> When I try to load a resource that does not exists,
> a "resource not found" error message is written to
> the log file:
> 
> ERROR sitemap.handled-errors - Resource not found.
> [...]
> 
> The log message specifies where and in which sitemap
> matcher the error occurred, but it does not mention which
> resource could not be retrieved. Is there a way
> to get a hint which resource is missing?

Please try the patch in the attachment.
(It's for Cocoon's SourceUtil class).
I think it's not the only place with this message, but maybe we're
lucky...

hth,
Josias


> 
> Thanks
> 
> - Felix
> 
Index: src/java/org/apache/cocoon/components/source/SourceUtil.java
===================================================================
--- src/java/org/apache/cocoon/components/source/SourceUtil.java	(revision 345236)
+++ src/java/org/apache/cocoon/components/source/SourceUtil.java	(working copy)
@@ -450,7 +450,7 @@
      */
     static public ProcessingException handle(SourceException se) {
         if (se instanceof SourceNotFoundException) {
-            return new ResourceNotFoundException("Resource not found.", se);
+            return new ResourceNotFoundException("Resource not found: "+se.getMessage(), se);
         }
         return new ProcessingException("Exception during source resolving.",
                                        se);

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to