mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Added Quick catch for gross deploy errors... (only reports in console log... no UI notification)
This commit is contained in:
parent
36ae1dd0ef
commit
88eb2cddc2
@ -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");
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user