[Gradle, JS] Add more information on Gradle exception

^KT-41566 fixed
This commit is contained in:
Ilya Goncharov
2020-09-01 12:48:22 +03:00
parent 076045ce54
commit 7fe02238ea
@@ -113,7 +113,12 @@ constructor(
)
}
throw GradleException("Library can be produced only for IR compiler")
throw GradleException(
"""
Library can be produced only for IR compiler.
Use `kotlin.js.compiler=ir` Gradle property or `js(IR)` target declaration.
"""
)
}
internal fun getIrBinaries(