svn commit: r594590 - /lenya/trunk/src/java/org/apache/lenya/cms/cocoon/source/RepositorySourceValidity.java

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: andreas
Date: Tue Nov 13 09:29:25 2007
New Revision: 594590

URL: http://svn.apache.org/viewvc?rev=594590&view=rev
Log:
[minor change] improved exception message

Modified:
    lenya/trunk/src/java/org/apache/lenya/cms/cocoon/source/RepositorySourceValidity.java

Modified: lenya/trunk/src/java/org/apache/lenya/cms/cocoon/source/RepositorySourceValidity.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/java/org/apache/lenya/cms/cocoon/source/RepositorySourceValidity.java?rev=594590&r1=594589&r2=594590&view=diff
==============================================================================
--- lenya/trunk/src/java/org/apache/lenya/cms/cocoon/source/RepositorySourceValidity.java (original)
+++ lenya/trunk/src/java/org/apache/lenya/cms/cocoon/source/RepositorySourceValidity.java Tue Nov 13 09:29:25 2007
@@ -44,9 +44,11 @@
     public int isValid(SourceValidity validity) {
         if (validity instanceof RepositorySourceValidity) {
             RepositorySourceValidity repoValidity = (RepositorySourceValidity) validity;
+            String repoValidityUri = repoValidity.getSourceURI();
 
-            if (!repoValidity.getSourceURI().equals(this.sourceUri)) {
-                throw new RuntimeException("Wrong source URI!");
+            if (!repoValidityUri.equals(this.sourceUri)) {
+                throw new RuntimeException("Wrong source URI: [" + repoValidityUri
+                        + "] instead of [" + this.sourceUri + "]!");
             }
             if (this.lastModified >= repoValidity.getLastModified()) {
                 return SourceValidity.VALID;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.