Commit 41863650 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

If the GUI is unsuccessful in spawning Pd, use an alert message to tell the...

If the GUI is unsuccessful in spawning Pd, use an alert message to tell the user and exit gracefully.
parent fa65fa9f
......@@ -950,6 +950,11 @@ function spawn_pd(gui_path, port) {
stdio: "inherit",
detached: true
});
child.on("error", function(err) {
pd_window.alert("Couldn't successfully start Pd due to an error:\n\n" +
err + "\n\nClick Ok to close Pd.");
process.exit(1);
});
child.unref();
post("Pd started.");
}
......
Supports Markdown
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