weechat-matrix: Handle errors from the sso helper.

This commit is contained in:
Damir Jelić 2019-09-17 20:26:26 +02:00
parent 355fa95533
commit 3866858d18
2 changed files with 4 additions and 0 deletions

View file

@ -119,6 +119,7 @@ def main():
return
host, port = sock.getsockname()
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
message = {
"type": "redirectUrl",

View file

@ -419,6 +419,9 @@ def sso_login_cb(server_name, command, return_code, out, err):
token = ret["loginToken"]
server.login(token=token)
elif msgtype == "error":
server.error("Error in the SSO helper {}".format(ret["message"]))
else:
server.error("Unknown SSO login message received from child "
"process.")