Skip to content

Commit f49851e

Browse files
committedFeb 27, 2019
Add back the old module not found check
So that we don't have to do a major version bump by dropping support for older Node.js versions.
1 parent ed7e626 commit f49851e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎bindings.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,9 @@ function bindings(opts) {
115115
}
116116
return b;
117117
} catch (e) {
118-
if (e.code !== 'MODULE_NOT_FOUND' && e.code !== 'QUALIFIED_PATH_RESOLUTION_FAILED') {
118+
if (e.code !== 'MODULE_NOT_FOUND' &&
119+
e.code !== 'QUALIFIED_PATH_RESOLUTION_FAILED' &&
120+
!/not find/i.test(e.message)) {
119121
throw e;
120122
}
121123
}

0 commit comments

Comments
 (0)
Please sign in to comment.