forked from node-migrator-bot/browser-launcher
-
Notifications
You must be signed in to change notification settings - Fork 13
ENOTDIR on spawn exits app #53
Copy link
Copy link
Open
Description
hello:
currently checkOthers does the following:
function checkOthers( name, callback ) {
var process = spawn( name, [ '--version' ] ),
re = browsers[ name ].re,
data = '';
process.stdout.on( 'data', function( buf ) {
data += buf;
} );however, the spawn command can fail with ENOTDIR. see node-inspector/node-inspector#807 for more on that (and see this libs failure output). an update to the spawn call as follows solves my issue:
function checkOthers( name, callback ) {
try {
var process = spawn( name, [ '--version' ] ),
re = browsers[ name ].re,
data = '';
} catch(err) {
return callback(err)
}thanks
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels