Skip to content

Commit c2abd1d

Browse files
committed
@cla-bot check
1 parent a97f120 commit c2abd1d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

packages/plugin-compiler/src/main/kotlin/io/realm/kotlin/compiler/RealmModelLoweringExtension.kt

+4-5
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import org.jetbrains.kotlin.backend.common.CompilationException
2626
import org.jetbrains.kotlin.backend.common.extensions.IrGenerationExtension
2727
import org.jetbrains.kotlin.backend.common.extensions.IrPluginContext
2828
import org.jetbrains.kotlin.backend.common.runOnFilePostfix
29-
import org.jetbrains.kotlin.backend.common.wrapWithCompilationException
3029
import org.jetbrains.kotlin.ir.UNDEFINED_OFFSET
3130
import org.jetbrains.kotlin.ir.declarations.IrClass
3231
import org.jetbrains.kotlin.ir.declarations.IrFile
@@ -76,13 +75,13 @@ private class RealmModelLowering(private val pluginContext: IrPluginContext) : C
7675
// Unfortunately we cannot access the IR element of e uniformly across 1.9 and 2.0 so
7776
// leaving it as null. Hopefully the embedded cause will give the appropriate pointers
7877
// 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)
8079
} catch (e: KotlinExceptionWithAttachments) {
8180
throw e
8281
} 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,
8685
null
8786
)
8887
}

0 commit comments

Comments
 (0)