diff --git a/examples/run_stdin.js b/examples/run_stdin.js index c56fc8f..9211746 100644 --- a/examples/run_stdin.js +++ b/examples/run_stdin.js @@ -31,6 +31,9 @@ var previousKey, CTRL_Q = '\u0011'; function handler(err, container) { + //Check error and thow it + if(err) throw new Error(err); + var attach_opts = {stream: true, stdin: true, stdout: true, stderr: true}; container.attach(attach_opts, function handler(err, stream) {