mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
parent
dba195b396
commit
7dd98e99f9
@ -192,7 +192,7 @@ function addModule(module) {
|
|||||||
if (!set.err) {
|
if (!set.err) {
|
||||||
set.types.forEach(function(t) {
|
set.types.forEach(function(t) {
|
||||||
if (nodeTypeToId.hasOwnProperty(t)) {
|
if (nodeTypeToId.hasOwnProperty(t)) {
|
||||||
set.err = new Error("Type already registered");
|
set.err = "Type already registered";
|
||||||
set.err.code = "type_already_registered";
|
set.err.code = "type_already_registered";
|
||||||
set.err.details = {
|
set.err.details = {
|
||||||
type: t,
|
type: t,
|
||||||
|
Loading…
Reference in New Issue
Block a user