Rename buildErrorWithAttachment -> errorWithAttachment to emphasise the similar semantics to kotlin.error
This commit is contained in:
committed by
Space Team
parent
e3c31e1387
commit
2d791eb292
+2
-2
@@ -5,10 +5,10 @@
|
||||
|
||||
package org.jetbrains.kotlin.analysis.utils.errors
|
||||
|
||||
import org.jetbrains.kotlin.utils.exceptions.buildErrorWithAttachment
|
||||
import org.jetbrains.kotlin.utils.exceptions.errorWithAttachment
|
||||
|
||||
public fun unexpectedElementError(elementName: String, element: Any?): Nothing {
|
||||
buildErrorWithAttachment("Unexpected $elementName ${element?.let { it::class.simpleName }}") {
|
||||
errorWithAttachment("Unexpected $elementName ${element?.let { it::class.simpleName }}") {
|
||||
withEntry(elementName, element) { element.toString() }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user