core / pragma / PragmaResult / onFailure /
onFailure #
fun onFailure(action: (TFailure) -> Unit): PragmaResult<TSuccess, TFailure>
Performs the given action on the encapsulated value if this instance represents failure. Returns the original PragmaResult unchanged.