diff --git a/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/persistent/PersistentFSRecordsLockFreeOverMMappedFile.java b/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/persistent/PersistentFSRecordsLockFreeOverMMappedFile.java index 612865a13105..90f15f949b2e 100644 --- a/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/persistent/PersistentFSRecordsLockFreeOverMMappedFile.java +++ b/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/persistent/PersistentFSRecordsLockFreeOverMMappedFile.java @@ -855,7 +855,9 @@ public final class PersistentFSRecordsLockFreeOverMMappedFile implements Persist private void checkRecordIdIsValid(int recordId) throws IndexOutOfBoundsException { if (!isValidFileId(recordId)) { throw new IndexOutOfBoundsException( - "recordId(=" + recordId + ") is outside of allocated IDs range (0, " + maxAllocatedID() + "]"); + "recordId(=" + recordId + ") is outside of allocated IDs range (0, " + maxAllocatedID() + "], " + + "(wasClosedProperly: " + wasClosedProperly() + ")" + ); } } @@ -866,7 +868,9 @@ public final class PersistentFSRecordsLockFreeOverMMappedFile implements Persist } if (!isValidFileId(parentId)) { throw new IndexOutOfBoundsException( - "parentId(=" + parentId + ") is outside of allocated IDs range [0, " + maxAllocatedID() + "]"); + "parentId(=" + parentId + ") is outside of allocated IDs range [0, " + maxAllocatedID() + "], " + + "(wasClosedProperly: " + wasClosedProperly() + ")" + ); } }