mirror of https://github.com/node-red/node-red.git
parent
dba195b396
commit
7dd98e99f9
|
@ -192,7 +192,7 @@ function addModule(module) {
|
|||
if (!set.err) {
|
||||
set.types.forEach(function(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.details = {
|
||||
type: t,
|
||||
|
|
Loading…
Reference in New Issue