rombert commented on a change in pull request #13:
URL:
https://github.com/apache/sling-org-apache-sling-jcr-resource/pull/13#discussion_r557489404
##########
File path:
src/main/java/org/apache/sling/jcr/resource/internal/JcrModifiableValueMap.java
##########
@@ -455,13 +455,21 @@ public Object put(final String aKey, final Object value) {
node.setProperty(name, entry.convertToType(Value.class, node,
this.helper.getDynamicClassLoader()));
}
} catch (final RepositoryException re) {
- throw new IllegalArgumentException("Value for key " + key + "
can't be put into node: " + value, re);
+ throw new IllegalArgumentException("Value '"+ value + "' for
property '" + key + "' can't be put into node '" + getNodePath(node) + "'.",
re);
Review comment:
Right, sorry, I missed that. Nothing to change then.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]