node-wireless icon indicating copy to clipboard operation
node-wireless copied to clipboard

Uncaught errors when killing child process

Open tlhunter opened this issue 11 years ago • 0 comments

Hitting Ctrl+C can sometimes cause uncaught errors to be throw. We should instead catch and emit.

[   FATAL] Got some major errors from our scan command:Error: Command failed:    

/home/tlhunter/Projects/node-wireless-test/node_modules/wireless/index.js:337    
            throw err;                                                           
                  ^                                                              
Error: Command failed:                                                           
    at ChildProcess.exithandler (child_process.js:647:15)                        
    at ChildProcess.emit (events.js:98:17)                                       
    at maybeClose (child_process.js:755:16)                                      
    at Socket.<anonymous> (child_process.js:968:11)                              
    at Socket.emit (events.js:95:17)                                             
    at Pipe.close (net.js:465:12)                                                

tlhunter avatar Sep 20 '14 03:09 tlhunter