mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
Added error-handling for npm
This commit is contained in:
parent
7ec7ccc402
commit
e7d9359737
1 changed files with 9 additions and 1 deletions
|
@ -22,7 +22,15 @@ async.series([
|
||||||
// load npm
|
// load npm
|
||||||
function(callback) {
|
function(callback) {
|
||||||
npm.load({}, function(er) {
|
npm.load({}, function(er) {
|
||||||
callback(er)
|
if(er)
|
||||||
|
{
|
||||||
|
console.error("Could not load NPM: " + er)
|
||||||
|
process.exit(1);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
callback();
|
||||||
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// load modules
|
// load modules
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue