1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

NLS deprecated node message

This commit is contained in:
Nick O'Leary 2015-06-16 15:39:45 +01:00
parent 539afb1e1d
commit 48df31d7b7
2 changed files with 5 additions and 5 deletions

View File

@ -80,8 +80,8 @@
"stopped-modified-flows": "Stopped modified flows",
"stopped-flows": "Stopped flows",
"stopped": "Stopped",
"missing-types": "Waiting for missing types to be registered:"
"missing-types": "Waiting for missing types to be registered:",
"missing-type-provided": " - __type__ (provided by npm module __module__)"
},
"flow": {
"unknown-type": "Unknown type: __type__",

View File

@ -153,16 +153,16 @@ var flowNodes = module.exports = {
var type = missingTypes[i];
var info = deprecated.get(type);
if (info) {
log.info(" - "+missingTypes[i]+" (provided by npm module "+info.module+")");
log.info(log._("nodes.flows.missing-type-provided",{type:missingTypes[i],module:info.module}));
knownUnknowns += 1;
} else {
log.info(" - "+missingTypes[i]);
}
}
if (knownUnknowns > 0) {
log.info("To install any of these missing modules, run:");
log.info(log._("nodes.flows.missing-type-install-1"));
log.info(" npm install <module name>");
log.info("in the directory:");
log.info(log._("nodes.flows.missing-type-install-2"));
log.info(" "+settings.userDir);
}
}