File tree 1 file changed +4
-5
lines changed
packages/plugin-compiler/src/main/kotlin/io/realm/kotlin/compiler
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ import org.jetbrains.kotlin.backend.common.CompilationException
26
26
import org.jetbrains.kotlin.backend.common.extensions.IrGenerationExtension
27
27
import org.jetbrains.kotlin.backend.common.extensions.IrPluginContext
28
28
import org.jetbrains.kotlin.backend.common.runOnFilePostfix
29
- import org.jetbrains.kotlin.backend.common.wrapWithCompilationException
30
29
import org.jetbrains.kotlin.ir.UNDEFINED_OFFSET
31
30
import org.jetbrains.kotlin.ir.declarations.IrClass
32
31
import org.jetbrains.kotlin.ir.declarations.IrFile
@@ -76,13 +75,13 @@ private class RealmModelLowering(private val pluginContext: IrPluginContext) : C
76
75
// Unfortunately we cannot access the IR element of e uniformly across 1.9 and 2.0 so
77
76
// leaving it as null. Hopefully the embedded cause will give the appropriate pointers
78
77
// to fix this.
79
- throw e.wrapWithCompilationException (" Internal error in realm lowering" , it , null )
78
+ throw CompilationException (" Internal error in realm lowering $it " , e , null )
80
79
} catch (e: KotlinExceptionWithAttachments ) {
81
80
throw e
82
81
} catch (e: Throwable ) {
83
- throw e.wrapWithCompilationException (
84
- " Internal error in file lowering" ,
85
- it ,
82
+ throw CompilationException (
83
+ " Internal error in file lowering $it " ,
84
+ e ,
86
85
null
87
86
)
88
87
}
You can’t perform that action at this time.
0 commit comments