cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From reinh...@apache.org
Subject svn commit: r383344 - /cocoon/trunk/cocoon-block-deployer/cocoon-deployer-core/src/main/java/org/apache/cocoon/deployer/block/BlockFactory.java
Date Sun, 05 Mar 2006 15:47:05 GMT
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;



Mime
View raw message