mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-27 19:06:34 +02:00
Fixes the grammar in the nip05 error messages
This commit is contained in:
@@ -47,13 +47,13 @@ class Nip05Verifier() {
|
|||||||
if (it.isSuccessful) {
|
if (it.isSuccessful) {
|
||||||
onSuccess(it.body.string())
|
onSuccess(it.body.string())
|
||||||
} else {
|
} else {
|
||||||
onError("Could not resolve $nip05. Error: ${it.code}. Check if the server up and if the address $nip05 is correct")
|
onError("Could not resolve $nip05. Error: ${it.code}. Check if the server is up and if the address $nip05 is correct")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onFailure(call: Call, e: java.io.IOException) {
|
override fun onFailure(call: Call, e: java.io.IOException) {
|
||||||
onError("Could not resolve $url. Check if the server up and if the address $nip05 is correct")
|
onError("Could not resolve $url. Check if the server is up and if the address $nip05 is correct")
|
||||||
e.printStackTrace()
|
e.printStackTrace()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@@ -57,12 +57,12 @@ class LightningAddressResolver() {
|
|||||||
if (it.isSuccessful) {
|
if (it.isSuccessful) {
|
||||||
onSuccess(it.body.string())
|
onSuccess(it.body.string())
|
||||||
} else {
|
} else {
|
||||||
onError("The receiver's lightning service at $url is not available. It was calculated from the lightning address \"${lnaddress}\". Error: ${it.code}. Check if the server up and if the lightning address is correct")
|
onError("The receiver's lightning service at $url is not available. It was calculated from the lightning address \"${lnaddress}\". Error: ${it.code}. Check if the server is up and if the lightning address is correct")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
e.printStackTrace()
|
e.printStackTrace()
|
||||||
onError("Could not resolve $url. Check if the server up and if the lightning address $lnaddress is correct")
|
onError("Could not resolve $url. Check if the server is up and if the lightning address $lnaddress is correct")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user