[fir] add more info to the error message in FirModuleData

This commit is contained in:
Ilya Kirillov
2022-07-18 11:26:35 +02:00
parent 8e9269eee6
commit dbfeeae696
2 changed files with 9 additions and 7 deletions
@@ -52,7 +52,8 @@ abstract class FirModuleData : FirSessionComponent {
private var _session: FirSession? = null
val session: FirSession
get() = _session ?: error("module data not bound to session")
get() = _session
?: error("module data ${this::class.simpleName}:${name} not bound to session")
fun bindSession(session: FirSession) {
if (_session != null) {