Skip to content

Ignored Result (ARCH8152)

Key kotlin.logging.ignored-result · Severity error · Category logging

Flags runCatching { } whose Result is discarded, and Result-returning calls used as bare statements - the failure is captured and then thrown away.

runCatching { save() }
runCatching { save() }.onFailure { log.error("save failed", it) }

Handle the Result: onFailure / getOrThrow / getOrElse.