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:
parent
57ff8a0ca0
commit
c06645ce88
2 changed files with 3 additions and 3 deletions
|
@ -45,8 +45,8 @@ public class CollatedObjectPropertyTemplateModel extends ObjectPropertyTemplateM
|
||||||
|
|
||||||
String invalidConfigMessage = checkConfiguration();
|
String invalidConfigMessage = checkConfiguration();
|
||||||
if ( ! invalidConfigMessage.isEmpty() ) {
|
if ( ! invalidConfigMessage.isEmpty() ) {
|
||||||
throw new InvalidConfigurationException("Invalid configuration for property " +
|
throw new InvalidConfigurationException("Invalid configuration for collated property " +
|
||||||
op.getURI() + ":" + invalidConfigMessage);
|
op.getURI() + ":" + invalidConfigMessage + ". Creating uncollated display instead.");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Get the data */
|
/* Get the data */
|
||||||
|
|
|
@ -141,7 +141,7 @@ public abstract class ObjectPropertyTemplateModel extends PropertyTemplateModel
|
||||||
try {
|
try {
|
||||||
return new CollatedObjectPropertyTemplateModel(op, subject, vreq, policyHelper);
|
return new CollatedObjectPropertyTemplateModel(op, subject, vreq, policyHelper);
|
||||||
} catch (InvalidConfigurationException e) {
|
} catch (InvalidConfigurationException e) {
|
||||||
log.error(e);
|
log.warn(e);
|
||||||
return new UncollatedObjectPropertyTemplateModel(op, subject, vreq, policyHelper);
|
return new UncollatedObjectPropertyTemplateModel(op, subject, vreq, policyHelper);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue