Manage not existen or inactive relay

This commit is contained in:
Daniele Tonon
2023-11-16 15:04:44 +01:00
parent 2814460acc
commit 9f6726023c
2 changed files with 15 additions and 1 deletions

View File

@@ -424,6 +424,9 @@ type ErrorPage struct {
}
func (e *ErrorPage) TemplateText() string {
if e.Message != "" {
return tmplError
}
e.Message = "I cannot give any suggestions to solve the problem, maybe the best solution is to pubblicy blame the devs on Nostr"
if strings.Contains(e.Errors, "invalid checksum") {
e.Message = "It seems you entered an invalid event code, try to check if it is correct; a good idea is compare the first and the last characters"