Skip to content

Commit c61d346

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 8679118 commit c61d346

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
@@ -98,12 +98,12 @@ function configure (gyp, argv, callback) {
9898
fs.unlink(symlinkDestination, function (err) {
9999
if (err && err.code !== 'ENOENT') {
100100
log.warn('python symlink', 'error when attempting to remove existing symlink')
101-
log.warn('python symlink', err.stack)
101+
log.warn('python symlink', err.stack, 'errno: ' + err.errno)
102102
}
103103
fs.symlink(python, symlinkDestination, function (err) {
104104
if (err) {
105105
log.warn('python symlink', 'error when attempting to create Python symlink')
106-
log.warn('python symlink', err.stack)
106+
log.warn('python symlink', err.stack, 'errno: ' + err.errno)
107107
}
108108
})
109109
})

0 commit comments

Comments
 (0)