Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
nerrons
purr-data
Commits
ac536d2f
Commit
ac536d2f
authored
Feb 01, 2019
by
Jonathan Wilkes
Browse files
add prompt to get socket error before the GUI bails
parent
44a4efca
Changes
1
Show whitespace changes
Inline
Side-by-side
pd/nw/pdgui.js
View file @
ac536d2f
...
...
@@ -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
);
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment