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

Node errors should be Strings not Errors

Fixes #1781
This commit is contained in:
Nick O'Leary 2018-07-11 13:40:53 +01:00
parent dba195b396
commit 7dd98e99f9
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -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,