error handling

This commit is contained in:
Believethehype
2023-03-15 00:52:28 +01:00
parent b2547e26f4
commit 8e93dcfe80
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ func handleLNURL(w http.ResponseWriter, r *http.Request) {
return
}
log.Info().Str("username", username).Str("domain", domain).Msg("got lnurl request")
log.Debug().Str("username", username).Str("domain", domain).Msg("got lnurl request")
if amount := r.URL.Query().Get("amount"); amount == "" {
// convert configured sendable amounts to integer
+2
View File
@@ -89,6 +89,7 @@ func GetNostrProfileMetaData(npub string) (nostr.ProfileMetadata, error) {
url := "wss://relay.damus.io"
relay, err := nostr.RelayConnect(ctx, url)
if err != nil {
cancel()
return *metadata, err
}
@@ -104,6 +105,7 @@ func GetNostrProfileMetaData(npub string) (nostr.ProfileMetadata, error) {
Limit: 1,
}}
} else {
cancel()
return *metadata, err
}