You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by re...@apache.org on 2006/03/05 16:47:05 UTC

svn commit: r383344 - /cocoon/trunk/cocoon-block-deployer/cocoon-deployer-core/src/main/java/org/apache/cocoon/deployer/block/BlockFactory.java

Author: reinhard
Date: Sun Mar  5 07:47:04 2006
New Revision: 383344

URL: http://svn.apache.org/viewcvs?rev=383344&view=rev
Log:
improve error reporting

Modified:
    cocoon/trunk/cocoon-block-deployer/cocoon-deployer-core/src/main/java/org/apache/cocoon/deployer/block/BlockFactory.java

Modified: cocoon/trunk/cocoon-block-deployer/cocoon-deployer-core/src/main/java/org/apache/cocoon/deployer/block/BlockFactory.java
URL: http://svn.apache.org/viewcvs/cocoon/trunk/cocoon-block-deployer/cocoon-deployer-core/src/main/java/org/apache/cocoon/deployer/block/BlockFactory.java?rev=383344&r1=383343&r2=383344&view=diff
==============================================================================
--- cocoon/trunk/cocoon-block-deployer/cocoon-deployer-core/src/main/java/org/apache/cocoon/deployer/block/BlockFactory.java (original)
+++ cocoon/trunk/cocoon-block-deployer/cocoon-deployer-core/src/main/java/org/apache/cocoon/deployer/block/BlockFactory.java Sun Mar  5 07:47:04 2006
@@ -60,15 +60,15 @@
 			block.setId(blockDescriptor.getId());
 		
 		} catch (FileNotFoundException e) {
-			throw new DeploymentException("The block archive file can't be found.");
+			throw new DeploymentException("The block archive file '" + blockArchive.getAbsolutePath() + "' can't be found.");
 		} catch (IOException e) {
-			throw new DeploymentException("The block archive or the block descriptor can't be read correctly.");
+			throw new DeploymentException("The block archive or the block descriptor '" + blockArchive.getAbsolutePath() + "' can't be read correctly.");
 		} catch (MarshalException e) {
-			throw new DeploymentException("The block descriptor of the archive can't be read correctly.");
+			throw new DeploymentException("The block descriptor of the archive '" + blockArchive.getAbsolutePath() + "' can't be read correctly.");
 		} catch (ValidationException e) {
-			throw new DeploymentException("The block descriptor of the archive can't be read correctly.");
+			throw new DeploymentException("The block descriptor of the archive '" + blockArchive.getAbsolutePath() + "' can't be read correctly.");
 		} catch (SAXException e) {
-			throw new DeploymentException("The block descriptor of the archive can't be read correctly.");
+			throw new DeploymentException("The block descriptor of the archive '" + blockArchive.getAbsolutePath() + "' can't be read correctly.");
 		}
 		
 		return block;