Add file content to parsing errors

This commit is contained in:
Mikhael Bogdanov
2018-10-22 15:55:44 +02:00
parent 9c3b367b93
commit 2131a314b0
@@ -137,7 +137,11 @@ class CodegenTestsOnAndroidGenerator private constructor(private val pathManager
writeFiles(
rawFiles.map {
CodegenTestFiles.create(it.first, it.second, environment.project).psiFile
try {
CodegenTestFiles.create(it.first, it.second, environment.project).psiFile
} catch (e: Throwable) {
throw RuntimeException("Error on processing ${it.first}:\n${it.second}", e)
}
}, environment
)
Disposer.dispose(disposable)