Index: FileGenerator.java
===================================================================
RCS file: /home/cvspublic/xml-cocoon2/src/org/apache/cocoon/generation/FileGenerator.java,v
retrieving revision 1.9
diff -u -r1.9 FileGenerator.java
--- FileGenerator.java	2001/05/31 17:38:19	1.9
+++ FileGenerator.java	2001/06/07 20:02:39
@@ -9,6 +9,7 @@
 
 import java.io.File;
 import java.io.IOException;
+import java.io.FileNotFoundException;
 import java.util.Map;
 import org.apache.avalon.framework.component.Component;
 import org.apache.avalon.framework.component.ComponentException;
@@ -113,9 +114,12 @@
 
             parser.setConsumer(super.xmlConsumer);
             parser.parse(this.inputSource.getInputSource());
+        } catch (FileNotFoundException e) {
+            throw new ResourceNotFoundException("FileGenerator could not find resource "
+                + this.inputSource.getSystemId());
         } catch (IOException e) {
             getLogger().error("FileGenerator.generate()", e);
-            throw new ResourceNotFoundException("FileGenerator could not find resource", e);
+            throw new ResourceNotFoundException("FileGenerator could not read resource", e);
         } catch (SAXException e) {
             getLogger().error("FileGenerator.generate()", e);
             throw(e);

