Add file content to parsing errors
This commit is contained in:
+5
-1
@@ -137,7 +137,11 @@ class CodegenTestsOnAndroidGenerator private constructor(private val pathManager
|
|||||||
|
|
||||||
writeFiles(
|
writeFiles(
|
||||||
rawFiles.map {
|
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
|
}, environment
|
||||||
)
|
)
|
||||||
Disposer.dispose(disposable)
|
Disposer.dispose(disposable)
|
||||||
|
|||||||
Reference in New Issue
Block a user