diff --git a/packages/node_modules/@node-red/editor-client/locales/en-US/editor.json b/packages/node_modules/@node-red/editor-client/locales/en-US/editor.json
index e6f927ca1..0e60d17e3 100755
--- a/packages/node_modules/@node-red/editor-client/locales/en-US/editor.json
+++ b/packages/node_modules/@node-red/editor-client/locales/en-US/editor.json
@@ -545,7 +545,7 @@
"nodeDisabled": "Node disabled:",
"nodeDisabled_plural": "Nodes disabled:",
"nodeUpgraded": "Node module __module__ upgraded to version __version__",
- "unknownNodeRegistered": "Unrecognised node type registered:
"
+ "unknownNodeRegistered": "Error loading node: "
},
"editor": {
"title": "Manage palette",
diff --git a/packages/node_modules/@node-red/editor-client/src/js/nodes.js b/packages/node_modules/@node-red/editor-client/src/js/nodes.js
index 3c95239a1..f2252f95c 100644
--- a/packages/node_modules/@node-red/editor-client/src/js/nodes.js
+++ b/packages/node_modules/@node-red/editor-client/src/js/nodes.js
@@ -144,8 +144,17 @@ RED.nodes = (function() {
registerNodeType: function(nt,def) {
if (nt.substring(0,8) != "subflow:") {
if (!nodeSets[typeToId[nt]]) {
- var fullType = (RED._loadingModule?("["+RED._loadingModule+"] "):"")+nt
- RED.notify(RED._("palette.event.unknownNodeRegistered",{type:fullType}), "error");
+ var error = "";
+ var fullType = nt;
+ if (RED._loadingModule) {
+ fullType = "["+RED._loadingModule+"] "+nt;
+ if (nodeSets[RED._loadingModule]) {
+ error = nodeSets[RED._loadingModule].err || "";
+ } else {
+ error = "Unknown error";
+ }
+ }
+ RED.notify(RED._("palette.event.unknownNodeRegistered",{type:fullType, error:error}), "error");
return;
}
def.set = nodeSets[typeToId[nt]];