is that a a good way to add optional info to an er...
# codereview
c
is that a a good way to add optional info to an error message:
Copy code
"Body is valid JSON but with the wrong parameters."
                        + (e.path.lastOrNull()?.fieldName?.let { " This field could not be read: $it"  } ?: "")