Minor, add error message to linker exception
(cherry picked from commit 04048d57ab912823504e9f57ddbc3a5f06b6af7c)
This commit is contained in:
committed by
Space Team
parent
530f533c84
commit
da884bd554
+4
-1
@@ -5,4 +5,7 @@
|
|||||||
|
|
||||||
package org.jetbrains.kotlin.analyzer
|
package org.jetbrains.kotlin.analyzer
|
||||||
|
|
||||||
class CompilationErrorException : RuntimeException()
|
class CompilationErrorException : RuntimeException {
|
||||||
|
constructor() : super()
|
||||||
|
constructor(message: String) : super(message)
|
||||||
|
}
|
||||||
|
|||||||
+1
-1
@@ -24,7 +24,7 @@ abstract class KotlinIrLinkerIssue {
|
|||||||
|
|
||||||
fun raiseIssue(messageLogger: IrMessageLogger): Nothing {
|
fun raiseIssue(messageLogger: IrMessageLogger): Nothing {
|
||||||
messageLogger.report(IrMessageLogger.Severity.ERROR, errorMessage, null)
|
messageLogger.report(IrMessageLogger.Severity.ERROR, errorMessage, null)
|
||||||
throw CompilationErrorException()
|
throw CompilationErrorException(errorMessage)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user