Skip to content

Commit 0b54241

Browse files
committed
lib: restore err.errno to logs for symlink errors
This info (err.errno) is the only piece of information in the error object that is not redundant to err.stack.
1 parent 5889ba0 commit 0b54241

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/configure.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,12 @@ function configure (gyp, argv, callback) {
101101
fs.unlink(symlinkDestination, function (err) {
102102
if (err && err.code !== 'ENOENT') {
103103
log.warn('python symlink', 'error when attempting to remove existing symlink')
104-
log.warn('python symlink', err.stack)
104+
log.warn('python symlink', err.stack, 'errno: ' + err.errno)
105105
}
106106
fs.symlink(python, symlinkDestination, function (err) {
107107
if (err) {
108108
log.warn('python symlink', 'error when attempting to create Python symlink')
109-
log.warn('python symlink', err.stack)
109+
log.warn('python symlink', err.stack, 'errno: ' + err.errno)
110110
}
111111
})
112112
})

0 commit comments

Comments
 (0)