You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by re...@apache.org on 2023/08/30 08:07:01 UTC

[jackrabbit-oak] 01/02: OAK-10316: Importer exceptions always should mention path (#1001)

This is an automated email from the ASF dual-hosted git repository.

reschke pushed a commit to branch 1.22
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git

commit aa08f62d6b162edd050797cef889639a079079e8
Author: Julian Reschke <re...@apache.org>
AuthorDate: Thu Jun 22 13:23:03 2023 +0200

    OAK-10316: Importer exceptions always should mention path (#1001)
---
 .../src/main/java/org/apache/jackrabbit/oak/jcr/xml/ImporterImpl.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/xml/ImporterImpl.java b/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/xml/ImporterImpl.java
index 6f64294495..5c692bcc3c 100644
--- a/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/xml/ImporterImpl.java
+++ b/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/xml/ImporterImpl.java
@@ -147,11 +147,11 @@ public class ImporterImpl implements Importer {
         VersionManagerImpl vMgr = wsp.internalGetVersionManager();
         NodeDelegate nd = new NodeDelegate(sd, importTargetTree); 
         if (!vMgr.isCheckedOut(nd)) {
-            throw new VersionException("Target node is checked in.");
+            throw new VersionException("Target node is checked in: " + absPath);
         }
         boolean hasLocking = sessionContext.getRepository().getDescriptorValue(Repository.OPTION_LOCKING_SUPPORTED).getBoolean();
         if (importTargetTree.getStatus() != Tree.Status.NEW && hasLocking && nd.isLocked()) {
-            throw new LockException("Target node is locked.");
+            throw new LockException("Target node is locked:" + absPath);
         }
         effectiveNodeTypeProvider = wsp.getNodeTypeManager();
         definitionProvider = wsp.getNodeTypeManager();