Use Throwable.localizedMessage instead of Throwable.message

Proprietary

Prefer the i18n-aware localizedMessage property over message when surfacing exception text to end users. Both are Kotlin properties on java.lang.Throwable — the rewrite is a pure property-access rename.

org.openrewrite.kotlin.migrate.UseLocalizedMessage$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.migrate.UseLocalizedMessage$KtRecipe'

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.