JSR 223 Kotlin scripting

With JSR223 compatible Kotlin scripting, I like to have an API to get the compiler error messages when the script passed to the eval() method is wrong, but I can’t find one.

How can the compiler error messages being displayed programmatically with the JSR223 scripting framework?

Have you tried jvm scripting host directly, without JSR223 ?
As I remember, it gives more information about errors.
You can find some examples on github.

I use JSR223 Kotlin scripting from within my project KotlinLab

Now, I display compiler error messages, extracting them from the exception handler, i.e.

catch (Exception ex) {
System.out.println(ex.getMessage());

}