You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2007/11/13 18:29:27 UTC
svn commit: r594590 -
/lenya/trunk/src/java/org/apache/lenya/cms/cocoon/source/RepositorySourceValidity.java
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;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org