[FIR] KT-56846: Unwrap SourceCodeAnalysisException on transformFile

^KT-56846 Fixed

Merge-request: KT-MR-9065
Merged-by: Nikolay Lunyak <Nikolay.Lunyak@jetbrains.com>
This commit is contained in:
Nikolay Lunyak
2023-03-23 09:54:43 +00:00
committed by Space Team
parent 7b04201e77
commit a2e2a96fd3
16 changed files with 106 additions and 31 deletions
@@ -172,7 +172,7 @@ object FirCliExceptionHandler : FirExceptionHandler() {
override fun handleExceptionOnFileAnalysis(file: FirFile, throwable: Throwable): Nothing {
throw throwable.wrapIntoFileAnalysisExceptionIfNeeded(
file.sourceFile?.path,
file.source
file.source,
) { file.sourceFileLinesMapping?.getLineAndColumnByOffset(it) }
}
}