1
0
Fork 0
mirror of https://codeberg.org/june64/mrvc.git synced 2026-01-11 08:16:33 +01:00

log additional informative infos when various errors are encountered

This commit is contained in:
June 2025-08-20 22:01:30 +02:00
commit 703b28b6fe
Signed by: june
SSH key fingerprint: SHA256:o9EAq4Y9N9K0pBQeBTqhSDrND5E7oB+60ZNx0U1yPe0
2 changed files with 6 additions and 0 deletions

View file

@ -19,11 +19,13 @@ func main() {
userId := id.UserID(config.UserID)
_, homeserver, err := userId.ParseAndValidate()
if err != nil {
log.Println("Error while parsing and validating the given user ID. Please ensure it is valid.")
log.Fatal(err)
}
clientWellKnown, err := mautrix.DiscoverClientAPI(context.Background(), homeserver)
if err != nil {
log.Println("Error while trying to discover the homeservers client API URL from the given user ID. Please ensure it is valid and its homeserver is correctly configured.")
log.Fatal(err)
}
homeserverURL := clientWellKnown.Homeserver.BaseURL