Add log warning if node module required version cannot be satisfied

This commit is contained in:
Nick O'Leary
2016-07-28 15:43:26 +01:00
parent 6a528b5fdb
commit 0ade8ff7a2
4 changed files with 4 additions and 2 deletions

View File

@@ -42,7 +42,7 @@ function registerType(nodeSet,type,constructor,opts) {
if (typeof type !== "string") {
// This is someone calling the api directly, rather than via the
// RED object provided to a node. Log a warning
log.warn("Deprecated call to RED.runtime.nodes.registerType - node-set name must be provided as first argument");
log.warn("["+nodeSet+"] Deprecated call to RED.runtime.nodes.registerType - node-set name must be provided as first argument");
opts = constructor;
constructor = type;
type = nodeSet;