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:
parent
4964485d29
commit
703b28b6fe
2 changed files with 6 additions and 0 deletions
2
main.go
2
main.go
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue