Skip to content
This repository was archived by the owner on Oct 22, 2021. It is now read-only.

Commit b7143e3

Browse files
authored
🔊 Output JSON stringified socket errors on term client
related to #222
1 parent d3f9af3 commit b7143e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/classes/terminal.class.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class Terminal {
108108
}
109109
}, 200);
110110
};
111-
this.socket.onerror = (e) => {throw e};
111+
this.socket.onerror = (e) => {throw JSON.stringify(e)};
112112

113113
let parent = document.getElementById(opts.parentId);
114114
parent.addEventListener("wheel", e => {

0 commit comments

Comments
 (0)