Skip to content

Commit ed7e626

Browse files
arcanisTooTallNate
authored andcommittedFeb 27, 2019
Use actual error code to detect resolution exceptions (#56)
1 parent e121358 commit ed7e626

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎bindings.js

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

0 commit comments

Comments
 (0)
Please sign in to comment.