Created
February 19, 2016 06:33
-
-
Save cdaringe/9845fe02a2f87978f81d to your computer and use it in GitHub Desktop.
`spawn` handles ENOTDIR differently based on ENV
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
osx => | |
```js | |
cdieringer@Snapper-osx:~/node/coinstac-common$ node -v | |
v4.2.4 | |
cdieringer@Snapper-osx:~/node/coinstac-common$ node debug test/ | |
< Debugger listening on port 5858 | |
... | |
break in src/models/computation/command.js:35 | |
33 cmd = spawn(this.cmd, this.args, { cwd: this.cwd }); | |
34 } catch (err) { | |
>35 debugger | |
36 return cb(err); // <== 'Error: spawn ENOTDIR' | |
37 } | |
debug> | |
``` | |
linux (codeship box) => | |
```js | |
rof@railsonfire_db59a440-b8f9-0133-c46f-360779539cf5_4b897b15371a:~/clone$ node -v | |
v4.2.4 | |
< Debugger listening on port 5858 | |
debug> . ok | |
... | |
break in src/models/computation/command.js:41 | |
39 let errMsg = ''; | |
40 cmd.on('error', function(err) { | |
>41 debugger | |
42 return cb(err); // <== 'Error: spawn ENOTDIR' | |
43 }) | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment