Rethrow binding errors

This commit is contained in:
Kevin Sawicki 2016-09-16 11:34:52 -07:00
parent 577394442b
commit 5d0f3534eb

View file

@ -6,6 +6,8 @@ process.atomBinding = function (name) {
} catch (error) {
if (/No such module/.test(error.message)) {
return process.binding('atom_common_' + name)
} else {
throw error
}
}
}