From bc07306ff797bcdae9cdfb3a0014ddf185368780 Mon Sep 17 00:00:00 2001 From: Eugene Zhuravlev Date: Wed, 23 Feb 2011 16:51:43 +0100 Subject: [PATCH] better assertion message --- .../src/com/intellij/util/indexing/FileBasedIndex.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/util/indexing/FileBasedIndex.java b/platform/lang-impl/src/com/intellij/util/indexing/FileBasedIndex.java index 76f69436607c..a585930b7e12 100644 --- a/platform/lang-impl/src/com/intellij/util/indexing/FileBasedIndex.java +++ b/platform/lang-impl/src/com/intellij/util/indexing/FileBasedIndex.java @@ -1036,7 +1036,7 @@ public class FileBasedIndex implements ApplicationComponent { private void clearIndex(final ID indexId) throws StorageException { final UpdatableIndex index = getIndex(indexId); - assert index != null; + assert index != null: "Index with key " + indexId + " not found or not registered properly"; index.clear(); try { IndexInfrastructure.rewriteVersion(IndexInfrastructure.getVersionFile(indexId), myIndexIdToVersionMap.get(indexId));