Skip to content

Commit

Permalink
more detailed message for connection error
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonChen666 committed Jan 29, 2025
1 parent 697a1cc commit 69a85f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion synadm/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ def query(
except InvalidURL as error:
log_fatal_exit(error, self.log)
except MissingSchema as error:
log_fatal_exit(error, self.log)
log_fatal_exit(error, self.log, "Connection error. Please check "
"that Synapse can be reached.")
except Exception as error:
self.log.error("%s while querying %s: %s",
type(error).__name__, host_descr, error)
Expand Down

0 comments on commit 69a85f5

Please sign in to comment.