Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove compatibility layer for util.getSystemErrorName() #221

Merged
merged 2 commits into from
May 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict';
const path = require('path');
const os = require('os');
const util = require('util');
const childProcess = require('child_process');
const crossSpawn = require('cross-spawn');
const stripFinalNewline = require('strip-final-newline');
Expand All @@ -10,7 +11,6 @@ const _getStream = require('get-stream');
const mergeStream = require('merge-stream');
const pFinally = require('p-finally');
const onExit = require('signal-exit');
const errname = require('./lib/errname');
const stdio = require('./lib/stdio');

const TEN_MEGABYTES = 1000 * 1000 * 10;
Expand Down Expand Up @@ -220,7 +220,7 @@ function getCode({error = {}}, code) {
}

if (Number.isInteger(code)) {
return [errname(-Math.abs(code)), Math.abs(code)];
return [util.getSystemErrorName(-Math.abs(code)), Math.abs(code)];
}

return [];
Expand Down
39 changes: 0 additions & 39 deletions lib/errname.js

This file was deleted.

26 changes: 0 additions & 26 deletions test/errname.js

This file was deleted.