custom module: prevent errors when failing to run the module
This commit is contained in:
parent
bd2674be46
commit
613d7dafc3
2 changed files with 2 additions and 0 deletions
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
- custom module
|
||||
- expose `setInterval`
|
||||
- prevent errors when failing to run the module
|
||||
|
||||
|
||||
## 0.28.1
|
||||
|
|
|
|||
|
|
@ -145,6 +145,7 @@ var customModule = (function(){
|
|||
mod = vm.runInContext(file, vm.createContext(context))
|
||||
} catch(err) {
|
||||
console.log(err)
|
||||
return false
|
||||
}
|
||||
|
||||
return mod
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue