String var returning "Kotlin.Unit" instead of text in Kotlin
finally I was able to capture the error in the response of an http request but now I am trying to return the result in a String and the only thing I get is a "Kotlin.Unit", why does it return that instead of text??
private suspend fun createUserPrepare():String?{
var result:String?=""
try {
val retrofit=retrofit.getInstance()
val payload=registerPayload()
val requestBody =...