weechat-matrix: Handle errors from the sso helper.
This commit is contained in:
parent
355fa95533
commit
3866858d18
2 changed files with 4 additions and 0 deletions
|
@ -119,6 +119,7 @@ def main():
|
||||||
return
|
return
|
||||||
|
|
||||||
host, port = sock.getsockname()
|
host, port = sock.getsockname()
|
||||||
|
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
|
||||||
|
|
||||||
message = {
|
message = {
|
||||||
"type": "redirectUrl",
|
"type": "redirectUrl",
|
||||||
|
|
3
main.py
3
main.py
|
@ -419,6 +419,9 @@ def sso_login_cb(server_name, command, return_code, out, err):
|
||||||
token = ret["loginToken"]
|
token = ret["loginToken"]
|
||||||
server.login(token=token)
|
server.login(token=token)
|
||||||
|
|
||||||
|
elif msgtype == "error":
|
||||||
|
server.error("Error in the SSO helper {}".format(ret["message"]))
|
||||||
|
|
||||||
else:
|
else:
|
||||||
server.error("Unknown SSO login message received from child "
|
server.error("Unknown SSO login message received from child "
|
||||||
"process.")
|
"process.")
|
||||||
|
|
Loading…
Reference in a new issue