Skip to content

Commit e8286a8

Browse files
committed
feature(spawnify) when ENOTDIR add path to message
1 parent 11ddfc7 commit e8286a8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/spawnify.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,9 @@
168168
}
169169

170170
if (error) {
171+
if (error.code === 'ENOTDIR')
172+
error.message = error.code + ': ' + options.cwd;
173+
171174
this._emit('error', newLine(error));
172175
this._emit('close');
173176
this._emit('exit');

0 commit comments

Comments
 (0)