mirror of
https://codeberg.org/emersion/gamja
synced 2025-03-15 00:47:46 +01:00
Improve SASL error message
This commit is contained in:
parent
c6c3c66fc4
commit
9df58971ea
@ -49,7 +49,7 @@ export default class Client extends EventTarget {
|
|||||||
});
|
});
|
||||||
|
|
||||||
this.ws.addEventListener("error", () => {
|
this.ws.addEventListener("error", () => {
|
||||||
this.dispatchEvent(new CustomEvent("error", { detail: "Connection Error" }));
|
this.dispatchEvent(new CustomEvent("error", { detail: "Connection error" }));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -120,7 +120,7 @@ export default class Client extends EventTarget {
|
|||||||
case irc.ERR_SASLTOOLONG:
|
case irc.ERR_SASLTOOLONG:
|
||||||
case irc.ERR_SASLABORTED:
|
case irc.ERR_SASLABORTED:
|
||||||
case irc.ERR_SASLALREADY:
|
case irc.ERR_SASLALREADY:
|
||||||
this.dispatchEvent(new CustomEvent("error", { detail: "SASL error: " + msg }));
|
this.dispatchEvent(new CustomEvent("error", { detail: "SASL error (" + msg.command + "): " + msg.params[1] }));
|
||||||
this.close();
|
this.close();
|
||||||
break;
|
break;
|
||||||
case "PING":
|
case "PING":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user