Rethrow binding errors
This commit is contained in:
parent
577394442b
commit
5d0f3534eb
1 changed files with 2 additions and 0 deletions
|
@ -6,6 +6,8 @@ process.atomBinding = function (name) {
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (/No such module/.test(error.message)) {
|
if (/No such module/.test(error.message)) {
|
||||||
return process.binding('atom_common_' + name)
|
return process.binding('atom_common_' + name)
|
||||||
|
} else {
|
||||||
|
throw error
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue