Fixed log

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@146912 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2017-04-18 07:56:00 +00:00
parent b360dbd9ae
commit 227eee7ebd
1 changed files with 6 additions and 6 deletions

View File

@ -302,11 +302,11 @@ public abstract class RelationManagement<R extends Relation> extends
if (propagationConstraint.getAddConstraint() != null) { if (propagationConstraint.getAddConstraint() != null) {
addConstraint = propagationConstraint.getAddConstraint(); addConstraint = propagationConstraint.getAddConstraint();
}else { }else {
String error = String.format("%s in %s is null" String error = String.format("%s.%s in %s is null"
+ "This is really strange and should not occur. " + "This is really strange and should not occur. "
+ "Please Investigate it.", + "Please Investigate it.",
Relation.ADD_CONSTRAINT,
Relation.PROPAGATION_CONSTRAINT, Relation.PROPAGATION_CONSTRAINT,
PropagationConstraint.ADD_PROPERTY,
Utility.toJsonString(element, true)); Utility.toJsonString(element, true));
logger.error(error); logger.error(error);
throw new ResourceRegistryException(error); throw new ResourceRegistryException(error);
@ -395,11 +395,11 @@ public abstract class RelationManagement<R extends Relation> extends
if (propagationConstraint.getRemoveConstraint() != null) { if (propagationConstraint.getRemoveConstraint() != null) {
removeConstraint = propagationConstraint.getRemoveConstraint(); removeConstraint = propagationConstraint.getRemoveConstraint();
}else{ }else{
String error = String.format("%s in %s is null" String error = String.format("%s.%s in %s is null"
+ "This is really strange and should not occur. " + "This is really strange and should not occur. "
+ "Please Investigate it.", + "Please Investigate it.",
Relation.REMOVE_CONSTRAINT,
Relation.PROPAGATION_CONSTRAINT, Relation.PROPAGATION_CONSTRAINT,
PropagationConstraint.REMOVE_PROPERTY,
Utility.toJsonString(element, true)); Utility.toJsonString(element, true));
logger.error(error); logger.error(error);
throw new ResourceRegistryException(error); throw new ResourceRegistryException(error);
@ -550,11 +550,11 @@ public abstract class RelationManagement<R extends Relation> extends
if (propagationConstraint.getRemoveConstraint() != null) { if (propagationConstraint.getRemoveConstraint() != null) {
removeConstraint = propagationConstraint.getRemoveConstraint(); removeConstraint = propagationConstraint.getRemoveConstraint();
}else{ }else{
String error = String.format("%s in %s is null" String error = String.format("%s.%s in %s is null"
+ "This is really strange and should not occur. " + "This is really strange and should not occur. "
+ "Please Investigate it.", + "Please Investigate it.",
Relation.REMOVE_CONSTRAINT,
Relation.PROPAGATION_CONSTRAINT, Relation.PROPAGATION_CONSTRAINT,
PropagationConstraint.REMOVE_PROPERTY,
Utility.toJsonString(element, true)); Utility.toJsonString(element, true));
logger.error(error); logger.error(error);
throw new ResourceRegistryException(error); throw new ResourceRegistryException(error);