Skip to content

Commit 9cdf10a

Browse files
committed
fix end example
1 parent ff858cf commit 9cdf10a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ pyshell.on('message', function (message) {
8888

8989
// end the input stream and allow the process to exit
9090
pyshell.end(function (err,code,signal) {
91+
if (err) throw err;
9192
console.log('The exit code was: ' + code);
9293
console.log('The exit signal was: ' + signal);
9394
console.log('finished');

0 commit comments

Comments
 (0)