mirror of
https://codeberg.org/emersion/gamja.git
synced 2024-11-14 19:05:01 -05:00
Improve SASL error message
This commit is contained in:
parent
c6c3c66fc4
commit
9df58971ea
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue