Modify messages displayed when a collated property doesn't have a valid config for collation, and downgrade from an error to a warning

This commit is contained in:
rjy7 2011-01-14 23:11:50 +00:00
parent 57ff8a0ca0
commit c06645ce88
2 changed files with 3 additions and 3 deletions

View file

@ -45,8 +45,8 @@ public class CollatedObjectPropertyTemplateModel extends ObjectPropertyTemplateM
String invalidConfigMessage = checkConfiguration();
if ( ! invalidConfigMessage.isEmpty() ) {
throw new InvalidConfigurationException("Invalid configuration for property " +
op.getURI() + ":" + invalidConfigMessage);
throw new InvalidConfigurationException("Invalid configuration for collated property " +
op.getURI() + ":" + invalidConfigMessage + ". Creating uncollated display instead.");
}
/* Get the data */

View file

@ -141,7 +141,7 @@ public abstract class ObjectPropertyTemplateModel extends PropertyTemplateModel
try {
return new CollatedObjectPropertyTemplateModel(op, subject, vreq, policyHelper);
} catch (InvalidConfigurationException e) {
log.error(e);
log.warn(e);
return new UncollatedObjectPropertyTemplateModel(op, subject, vreq, policyHelper);
}
} else {