Added file name to exception on indexing file mappings

This commit is contained in:
Michael Bogdanov
2015-12-18 13:37:25 +03:00
parent 055c71e8d0
commit 44bdac6e11
@@ -80,8 +80,12 @@ public object KotlinModuleMappingIndex : FileBasedIndexExtension<String, Package
return object : DataIndexer<String, PackageParts, FileContent> {
override fun map(inputData: FileContent): Map<String, PackageParts> {
val content = inputData.getContent()
val moduleMapping = ModuleMapping.create(content)
return moduleMapping.packageFqName2Parts
try {
val moduleMapping = ModuleMapping.create(content)
return moduleMapping.packageFqName2Parts
} catch(e : Exception) {
throw RuntimeException("Error on indexing ${inputData.file.path}", e)
}
}
}
}