Skip to content

Commit

Permalink
@cla-bot check
Browse files Browse the repository at this point in the history
  • Loading branch information
KitsuneAlex committed Aug 27, 2024
1 parent a97f120 commit c2abd1d
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import org.jetbrains.kotlin.backend.common.CompilationException
import org.jetbrains.kotlin.backend.common.extensions.IrGenerationExtension
import org.jetbrains.kotlin.backend.common.extensions.IrPluginContext
import org.jetbrains.kotlin.backend.common.runOnFilePostfix
import org.jetbrains.kotlin.backend.common.wrapWithCompilationException
import org.jetbrains.kotlin.ir.UNDEFINED_OFFSET
import org.jetbrains.kotlin.ir.declarations.IrClass
import org.jetbrains.kotlin.ir.declarations.IrFile
Expand Down Expand Up @@ -76,13 +75,13 @@ private class RealmModelLowering(private val pluginContext: IrPluginContext) : C
// Unfortunately we cannot access the IR element of e uniformly across 1.9 and 2.0 so
// leaving it as null. Hopefully the embedded cause will give the appropriate pointers
// to fix this.
throw e.wrapWithCompilationException("Internal error in realm lowering", it, null)
throw CompilationException("Internal error in realm lowering $it", e, null)
} catch (e: KotlinExceptionWithAttachments) {
throw e
} catch (e: Throwable) {
throw e.wrapWithCompilationException(
"Internal error in file lowering",
it,
throw CompilationException(
"Internal error in file lowering $it",
e,
null
)
}
Expand Down

0 comments on commit c2abd1d

Please sign in to comment.