Skip to content

Commit

Permalink
fixed string/number typing mismatch on errno
Browse files Browse the repository at this point in the history
  • Loading branch information
bjouhier committed Nov 25, 2016
1 parent b65bf1c commit 9196d20
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .vscode/settings.json
@@ -1,4 +1,9 @@
// Placez vos paramètres dans ce fichier pour remplacer les paramètres par défaut et les paramètres utilisateur.
{
"editor.formatOnSave": true
"editor.formatOnSave": true,
"files.exclude": {
"**/node_modules/**": true,
"**/out/**": true,
"**/lib/**": true
}
}
2 changes: 1 addition & 1 deletion src/devices/child_process.ts
Expand Up @@ -36,7 +36,7 @@ export function reader(proc: ChildProcess, options?: ReaderOptions) {
}
if (ec && !(opts.acceptCode && opts.acceptCode(ec))) {
err = new Error("process exited with code:" + ec);
err.errno = '' + ec;
err.errno = ec;
// compat code
var anyErr: any = err;
anyErr.code = ec;
Expand Down

0 comments on commit 9196d20

Please sign in to comment.