Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d268fd1

Browse files
Trottehmicky
authored andcommittedOct 4, 2019
Make execa compatible with Node.js 13.0.0-pre (#370)
1 parent ac2bc15 commit d268fd1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ module.exports.sync = (file, args, options) => {
189189
code: result.status,
190190
command,
191191
parsed,
192-
timedOut: result.error && result.error.errno === 'ETIMEDOUT',
192+
timedOut: result.error && result.error.code === 'ETIMEDOUT',
193193
isCanceled: false,
194194
killed: result.signal !== null
195195
});

‎readme.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const execa = require('execa');
6666
/*
6767
{
6868
message: 'Command failed with exit code 2 (ENOENT): wrong command spawn wrong ENOENT',
69-
errno: 'ENOENT',
69+
errno: -2,
7070
syscall: 'spawn wrong',
7171
path: 'wrong',
7272
spawnargs: ['command'],
@@ -105,7 +105,7 @@ try {
105105
/*
106106
{
107107
message: 'Command failed with exit code 2 (ENOENT): wrong command spawnSync wrong ENOENT',
108-
errno: 'ENOENT',
108+
errno: -2,
109109
syscall: 'spawnSync wrong',
110110
path: 'wrong',
111111
spawnargs: ['command'],

0 commit comments

Comments
 (0)
Please sign in to comment.