Show WS error in toast

This commit is contained in:
redphx 2024-06-10 08:57:07 +07:00
parent f71904c30b
commit 6f6a9e223e
2 changed files with 2 additions and 2 deletions

View File

@ -2990,7 +2990,7 @@ class PointerClient {
});
this.#socket.addEventListener("error", (event) => {
BxLogger.error(LOG_TAG, event);
Toast.show("Cannot setup mouse");
Toast.show("Cannot setup mouse: " + event);
});
this.#socket.addEventListener("close", (event) => {
this.#socket = null;

View File

@ -45,7 +45,7 @@ export class PointerClient {
// Error
this.#socket.addEventListener('error', (event) => {
BxLogger.error(LOG_TAG, event);
Toast.show('Cannot setup mouse');
Toast.show('Cannot setup mouse: ' + event);
});
this.#socket.addEventListener('close', (event) => {