Skip to content

Commit

Permalink
do not hide the error
Browse files Browse the repository at this point in the history
  • Loading branch information
mstdokumaci committed Aug 17, 2017
1 parent a81a5eb commit 7515a63
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/uws/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,6 @@ const native = (() => {
}
} catch (e) {
console.error(e)
const version = process.version.substring(1).split('.').map(function (n) {
return parseInt(n)
})
const lessThanSixFour = version[0] < 6 || (version[0] === 6 && version[1] < 4)

if (process.platform === 'win32' && lessThanSixFour) {
throw new Error('µWebSockets requires Node.js 6.4.0 or greater on Windows.')
} else {
throw new Error('Compilation of µWebSockets has failed and there is no pre-compiled binary ' +
'available for your system. Please install a supported C++11 compiler and reinstall the module \'uws\'.')
}
}
})()

Expand Down

0 comments on commit 7515a63

Please sign in to comment.