[FIR] Prevent duplicate FileAnalysisException-s

This commit is contained in:
Nikolay Lunyak
2023-04-28 12:53:55 +03:00
committed by Space Team
parent f3231b2aa9
commit efbcfb4994
@@ -56,6 +56,7 @@ fun Throwable.wrapIntoFileAnalysisExceptionIfNeeded(
else -> FileAnalysisException(filePath, cause, linesMapping(source.startOffset))
}
this is IndexNotReadyException -> this
this is FileAnalysisException -> this
this is ControlFlowException -> this
this is VirtualMachineError -> this
else -> FileAnalysisException(filePath, this)