Added Quick catch for gross deploy errors... (only reports in console log... no UI notification)

This commit is contained in:
Dave C-J 2013-09-13 17:23:23 +01:00
parent 36ae1dd0ef
commit 88eb2cddc2
1 changed files with 14 additions and 10 deletions

View File

@ -273,8 +273,13 @@ module.exports.parseConfig = function(conf) {
var nn = null;
var nt = node_type_registry.get(conf[i].type);
if (nt) {
try {
nn = new nt(conf[i]);
}
catch (err) {
util.log("[red] "+conf[i].type+" : "+err);
}
}
// console.log(nn);
if (nn == null) {
util.log("[red] unknown type: "+conf[i].type);
@ -296,4 +301,3 @@ module.exports.parseConfig = function(conf) {
events.emit("nodes-started");
}