mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Rethrow binding errors
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user