Minor, add error message to linker exception

(cherry picked from commit 04048d57ab912823504e9f57ddbc3a5f06b6af7c)
This commit is contained in:
Alexander Udalov
2023-05-05 16:25:43 +02:00
committed by Space Team
parent 530f533c84
commit da884bd554
2 changed files with 5 additions and 2 deletions
@@ -5,4 +5,7 @@
package org.jetbrains.kotlin.analyzer
class CompilationErrorException : RuntimeException()
class CompilationErrorException : RuntimeException {
constructor() : super()
constructor(message: String) : super(message)
}
@@ -24,7 +24,7 @@ abstract class KotlinIrLinkerIssue {
fun raiseIssue(messageLogger: IrMessageLogger): Nothing {
messageLogger.report(IrMessageLogger.Severity.ERROR, errorMessage, null)
throw CompilationErrorException()
throw CompilationErrorException(errorMessage)
}
}