Commit ac536d2f authored by Jonathan Wilkes's avatar Jonathan Wilkes

add prompt to get socket error before the GUI bails

parent 44a4efca
......@@ -1764,6 +1764,14 @@ function connect_as_client() {
client.setNoDelay(true);
// uncomment the next line to use fast_parser (then set its callback below)
//client.setEncoding("utf8");
client.on("error", function(e) {
var eString = "";
Object.keys(e).forEach(function(k) {
eString += " " + k + ": " + e[k];
});
pd_window.prompt("Error:" + eString);
});
client.connect(PORT, HOST, function() {
console.log("CONNECTED TO: " + HOST + ":" + PORT);
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment